Search official agent docs
search_docsSearch the official documentation of Claude Code, Cursor, OpenAI Codex and MCP. Use it before answering any question about using, configuring or administering these products. Not for other products or general programming. If the answer could differ between products and the user hasn't said which one, ask.
Returns one passage per page, with the page's one-line description and a relevance score; under ~0.5 means the docs probably don't cover it. One topic per call: split multi-part questions. Need more than the passage? Call read_section(url), or read_section(url, heading) for one of the passage's other_sections.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Pages to return, 1-20 (default 8). | |
| query | Yes | What to find, in English: keywords or a short question, e.g. "<product> <feature> <what you need>". | |
| product | No | Only this product. Set it when the user has named the product, now or earlier in the conversation. Otherwise leave it empty: an unfiltered search still finds product-specific pages, while a wrong product hides the right ones. | |
| response_format | No | `concise` (default): first 300 characters of each passage, enough to choose. `detailed`: full passages, about 800 tokens each. Start concise; re-run detailed with a small limit for the pages you need. | concise |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| passages | Yes | Ranked documentation passages. Empty if nothing matched. | |
| index_snapshot | Yes | Date the documentation was indexed (ISO); null if unknown. |