Answer: You configure tool search with the `ENABLE_TOOL_SEARCH` environment variable, set in the `env` option on `query()`. It accepts values such as (unset), `true`, `auto`, `auto:N`, and `false`. Status: Confirmed Entry: tool/claude-code/agents-and-automation/configure-tool-search Revision: 1 Digest: sha256:4ad9063d93756a9c (changes whenever the content changes) Timeline: Created: 2026-11-13T03:03:04Z Last changed: 2026-11-13T03:03:04Z Last verified: 2026-11-20T12:17:33Z Next check: 2026-11-21T12:17:33Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Configuration variable | ENABLE_TOOL_SEARCH | [1] | 2026-11-20 Where to set it | env | [1] | 2026-11-20 Example value | auto:5 | [1] | 2026-11-20 Default behavior | Tool search is on by default. | [1] | 2026-11-20 auto:N behavior | auto:N | [1] | 2026-11-20 false behavior | false | [1] | 2026-11-20 Sources: [1] Anthropic. "Scale to many tools with tool search". https://code.claude.com/docs/en/agent-sdk/tool-search.md Role: primary. Accessed: 2026-11-20T12:17:33Z Quote: "You control whether and when tool definitions are deferred with the `ENABLE_TOOL_SEARCH` environment variable" (Supports: Configuration variable) Quote: "Set the value in the `env` option on `query()`." (Supports: Where to set it) Quote: "ENABLE_TOOL_SEARCH: "auto:5"" (Supports: Example value) Quote: "Tool search is on by default." (Supports: Default behavior) Quote: "auto:N` | Same as `auto` with a custom percentage." (Supports: auto:N behavior) Quote: "false` | Tool search is off. All tool definitions are loaded into context on every turn." (Supports: false behavior) Published: 2026-11-20T03:17:50Z Snapshot SHA-256: 53192262923b7b10fe3d4ebcd036e818b6389d51f1e5e491e6febaf5ee31f153 (captured 2026-11-13T03:03:04Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:03:04Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:17:33Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:17:33Z Last attempt: 2026-11-20T12:17:33Z Notes and limitations: Extracted automatically from a single official source (section "Configure tool search"). Related: https://latestn.com/tool/claude-code/agents-and-automation/continue-conversations How do I continue a conversation when running Claude Code programmatically? https://latestn.com/tool/claude-code/agents-and-automation/control-turns-and-budget How do I control how many turns or budget a Claude Code agent loop runs? https://latestn.com/tool/claude-code/agents-and-automation/create-custom-subagent How do I create a custom subagent in Claude Code? https://latestn.com/tool/claude-code/agents-and-automation/claude-write-save-workflow How do I have Claude write and save a workflow in Claude Code? https://latestn.com/tool/claude-code/agents-and-automation/claudesdkclient-interrupts How do I interrupt a running Claude Code session with ClaudeSDKClient in Python? https://latestn.com/tool/claude-code/agents-and-automation/configure-hooks How do I configure hooks in Claude Code to intercept tool calls? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:03:04Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/agents-and-automation/configure-tool-search/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/agents-and-automation/configure-tool-search POST: https://latestn.com/dispute/tool/claude-code/agents-and-automation/configure-tool-search with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/agents-and-automation/configure-tool-search?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure tool search in Claude Code? Revision 1, last verified 2026-11-20T12:17:33Z. https://latestn.com/tool/claude-code/agents-and-automation/configure-tool-search (accessed 2026-11-21T10:06:13Z). @misc{LatestN_tool_claude_code_agents_and_automation_configure_tool_search_r1, title = {How do I configure tool search in Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/agents-and-automation/configure-tool-search}}, note = {Revision 1; digest sha256:4ad9063d93756a9c; last verified 2026-11-20T12:17:33Z; accessed 2026-11-21T10:06:13Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/agents-and-automation/configure-tool-search