This repository has been archived on 2026-04-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
claude-code-2026-04-02/docs-site/docs/reference/tools.md
2026-03-31 15:38:58 +05:00

869 B

Tools registry and execution

Primary paths: src/tools.ts, src/Tool.ts, src/tools/*, src/services/tools/

tools.ts exposes getTools(permissionContext) and helpers to merge built-in tools with MCP-derived tools. Built-ins live as one package per directory under tools/ (e.g. BashTool, FileReadTool, GlobTool, WebSearchTool, AgentTool).

services/tools/ contains orchestration: toolExecution.ts, StreamingToolExecutor.ts, toolHooks.ts, hooking tool lifecycle into analytics and permission systems.

Tool schemas and permission requirements align with the public Tools reference; this tree is the implementation of those capabilities.

See also: Tools reference, Appendix: tool packages.