Search documentation
searchFind passages in indexed documentation by asking natural-language questions or code identifiers. Get ranked sections with citation links, plus older-version matches via path prefixes.
Instructions
Start here: full-text search over the documentation indexed on this machine. Returns ranked passages, each with an id, title, heading path, citation_url, and text (long passages are shortened; read them in full with get_passage). Works with natural-language questions and code identifiers (getUserName, --dry-run, a.b.c). Results come from the current docs version; other_versions lists older versions that also matched, each with a path_prefix to pass back as path_prefix to search that version. Use list_sources to see which sources exist. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of passages (default 5, max 25). | |
| query | Yes | What to look for: a question, keywords, or identifiers. | |
| source_ids | No | Only search these source IDs, as returned by list_sources. Omit to search all sources. | |
| path_prefix | No | Only passages whose URL (web sources) or root-relative path (local sources) starts with this prefix, for example a docs section or an other_versions path_prefix from a previous search. |