search_docs
Semantic search across a project's version-pinned documentation — the fastest way to pull just the passage you need for an exact version instead of reading the whole llms.txt. Returns chunks ranked by relevance, capped by token_budget. Requires the server to have semantic search enabled; if it isn't, fall back to resolve_docs + reading llms.txt.
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": {
"project": "<project>",
"version": "<version>",
"query": "<query>"
},
"name": "search_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural-language search query | |
| top_k | No | Max results (1-50, default 10) | |
| project | Yes | Project slug (e.g. "nextjs", "react") | |
| version | Yes | Version string or "latest" | |
| snapshot | No | Immutable revision_id returned by resolve_docs; omit to use the current capture. | |
| token_budget | No | Max tokens to budget for results (default 4096) |