为什么我用CCR使用Claude Code无法使用自带的WebSearch工具?

同标题,是api的问题还是Claude Code的问题?
我发现Fetch工具是可以使用的,甚至还是调用的claude自己家的api
curl -X GET ‘https://claude.ai/api/web/domain_info?domain=https://www.baidu.com’ -H ‘User-Agent: axios/1.8.4’ -H ‘Connection: close’ -H ‘Accept: application/json, text/plain, /’ -H ‘Accept-Encoding: gzip, compress, deflate, br’
搜索工具的包没抓到

ccr 的 搜索能力取决于你api的搜索能力, 目前建议在ccr搜索设置为gemini-flash

就是说要看api是否自带搜索功能是吧?
这样的话我明白了

对, 用不了cc自带的websearch

fetch可以用,另一个websearch是claude官方的能力

可以用这个:GitHub - pomelo-nwu/claude-fetch-setup: A tool to automatically setup fetch MCP for Claude Code

2 个赞