Documentation search
search_docsSearch documentation with hybrid lexical-semantic matching; filter by tags, type, module, or inclusion status to find relevant sections.
Instructions
Hybrid search (lexical BM25 + semantic) in natural language over the project's documentation, with metadata filters. Entry point for any question about what the project does or why — behaviour, business rules, the exact text of a user-facing message, limits, endpoints, deployment steps, or the reasoning behind a decision. For a content or project question, this is the cheapest first probe; a filename alone does not reliably identify an indexed path, so resolve named .md files with docs_overview before calling read_doc. Source code remains the authority on current behaviour, while these docs are the only record of intent. The top result carries a full-length excerpt, centred on the part of the document that matched, which usually answers outright; the rest carry short ones, centred on their own match, enough to tell whether the top result is the right one. Each result has path, title, section, excerpt and score; section names the document region the fragment came from — a document with no headings reports one region for the whole file. A '…' at either end of an excerpt marks content omitted there — that is the signal to call read_doc with its path and section. If the project declares convention.excludedStatuses, documents in those statuses are left out unless include_excluded is set; if it declares none, no document is excluded by status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Number of results (5 by default) | |
| tags | No | Filter by tags (matching one is enough) — same caveat: omit unless docs_overview showed them. | |
| type | No | Filter by document type — project-defined, and absent entirely in many projects. Omit it unless docs_overview showed you the value; never infer it from directory names or paths. | |
| query | Yes | Natural-language query | |
| module | No | Filter by module — same caveat as type: omit unless docs_overview showed the value. | |
| include_excluded | No | Include documents whose status is listed in convention.excludedStatuses (no effect if the project declares no exclusions) |