claude-code-system-prompts/system-prompts/tool-description-toolsearch-second-part.md
2026-03-09 19:03:13 -06:00

14 lines
954 B
Markdown

<!--
name: 'Tool Description: ToolSearch (second part)'
description: The bulk of the tool description.
ccVersion: 2.1.72
-->
Until fetched, only the name is known — there is no parameter schema, so the tool cannot be invoked. This tool takes a query, matches it against the deferred tool list, and returns the matched tools' complete JSONSchema definitions inside a <functions> block. Once a tool's schema appears in that result, it is callable exactly like any tool defined at the top of the prompt.
Result format: each matched tool appears as one <function>{"description": "...", "name": "...", "parameters": {...}}</function> line inside the <functions> block — the same encoding as the tool list at the top of this prompt.
Query forms:
- "select:Read,Edit,Grep" — fetch these exact tools by name
- "notebook jupyter" — keyword search, up to max_results best matches
- "+slack send" — require "slack" in the name, rank by remaining terms