search_docs
Search documentation via keyword or BM25 queries, with filters for pack, limit, and response detail. Returns compact summaries and previews to support fast context retrieval.
Instructions
Search documentation chunks using keyword/BM25 search.
RECOMMENDED PATTERN (most token-efficient):
list_packs → discover available packs
search_docs (response_mode="compact") → get chunk IDs and summaries (~50 tokens/chunk)
get_chunk (for relevant IDs) → get full content on demand
Token cost guide: compact: ~50 tokens/chunk (summary only) standard: ~115 tokens/chunk (summary + preview) [default] full: ~250 tokens/chunk (full content)
Result is always a structured JSON object — never null. Empty results include scanned counts and a suggestion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack | No | Filter to specific pack(s). Supports glob patterns (e.g. 'react*'). | |
| limit | No | Max chunks to return (default 5, max 10). | |
| query | Yes | Search query. Supports camelCase and snake_case symbols. | |
| token_budget | No | Max tokens for response. System packs as many chunks as possible within budget. | |
| response_mode | No | Response detail level. 'compact' = summary only (~50 tok/chunk). 'standard' = summary + preview (~115 tok/chunk). | |
| min_confidence | No | Minimum confidence level. 'high' = BM25 score ≥ 6.0, 'any' = above floor. |