search_docs
Crawl a documentation site and return only the passages that match a query — each with its page URL, line and a relevance score. Token-efficient way to answer a question from docs without packing the whole site.
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": {
"url": "<url>",
"query": "<query>"
},
"name": "search_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The absolute http(s) URL to start crawling from. | |
| depth | No | How many link hops to follow (0–3, default 1). | |
| query | Yes | Space-separated search terms; matching is case-insensitive. | |
| max_pages | No | Max pages to fetch (1–30, default 10). | |
| max_matches | No | Max passages to return (1–50, default 5). | |
| context_chars | No | Per-passage character budget (80–4000, default 500). |