name: tools description: 列出所有可用的Claude Code工具及其参数和能力。用于在开始任务前了解当前工具可用性。 argument-hint: (无参数 - 列出所有工具) allowed-tools: Read
工具 - 了解你能做什么
列出所有可用的工具,显示其参数、能力和典型用例。
为了清晰,将输出格式化为TypeScript函数签名:
// 核心文件操作
Read(file_path: string, offset?: number, limit?: number): string
Write(file_path: string, content: string): void
Edit(file_path: string, old_string: string, new_string: string): void
// 搜索操作
Glob(pattern: string, path?: string): string[]
Grep(pattern: string, path?: string, options?: GrepOptions): string[]
// 执行
Bash(command: string, timeout?: number): { stdout: string, stderr: string }
// 网络操作
WebFetch(url: string, prompt: string): string
WebSearch(query: string): SearchResult[]
// 代理操作
Task(prompt: string, subagent_type: string): string
// MCP工具(如果配置)
// 列出任何可用的MCP服务器工具
列出工具后,注意:
- 哪些工具需要权限与自动允许
- 当前设置中的任何工具限制
- MCP服务器可用(如果有)
这有助于在开始任务前了解当前能力。