Search docs
search_docsSearch Claude documentation (the guides and the API reference together) by keyword or phrase. Returns matching pages and API endpoints ranked by relevance, with snippets showing context around matches.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Only return results of one kind: "prose_page" (guide pages), "api_sdk_method" (one API method, such as "Create a Message"), or "api_sdk_resource" (a group of endpoints, such as Messages). | |
| limit | No | Maximum results to return (default: 10, max: 50) | |
| query | Yes | Search query (keywords or phrase) | |
| sdk_language | No | Search this SDK's API reference together with the guides. Accepts an SDK language such as "python" or "typescript", or "http" (default — the language-neutral REST reference); unrecognized values fall back to "http". Results for endpoints then link to that SDK's reference pages and match its method names. |