Skip to content
Development
Command

/check-toolsearch

检查 ToolSearch(WebSearch)是否可用

From plugin
cc-use-exp
1k18 skills18 commands
Install
> /plugin marketplace add doccker/cc-use-exp
> /plugin install cc-use-exp@cc-use-exp

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/check-toolsearch

Context preview

What this command does when you run it.

检查 ToolSearch(WebSearch)是否可用

Command definition

check-toolsearch.md
description: 检查 ToolSearch(WebSearch)是否可用

验证当前 Claude Code 环境是否支持 ToolSearch 工具。

执行步骤

1. 尝试调用 WebSearch

使用 WebSearch 工具搜索关键词 `Claude Code CLI`。

2. 获取本机版本

使用 Bash 执行 `claude --version` 获取用户当前安装的 Claude Code 版本号。

3. 判断结果

**如果搜索成功返回结果**:

✅ ToolSearch 可用

搜索功能正常,你的 Claude Code 已支持 WebSearch/ToolSearch。

好处:
- 大幅减少 token 占用(工具定义不再内嵌上下文)
- 模型表现更好(上下文更干净,注意力不被稀释)
- 对话轮次更多(同样的上下文窗口可以增加数轮对话)

当前 Claude Code 版本为 {claude --version 的输出}。

**如果搜索失败或报错**:

❌ ToolSearch 不可用

可能原因:
1. 使用第三方中转地址,域名未通过白名单检查
2. Claude Code 版本不支持

解决方案:
  python tools/patch-toolsearch.py 或者
  python3 tools/patch-toolsearch.py

脚本会自动检测安装位置并解除域名限制,执行后重启 claude 即可。
Ships withcc-use-exp

保留你熟悉的 CLI/IDE,让 Claude Code、Gemini CLI、Codex、Cursor、GitHub Copilot 开箱即用 按费力度从低到高,用最少操作获得最大帮助 不是提示词集合,而是一套可维护的 AI 协作配置系统。

Get the whole plugin