search
Find code and documentation using hybrid keyword and embedding retrieval, with filters by folder or chunk kind. Returns ranked snippets with path:line citations and symbols for targeted lookups.
Instructions
Hybrid search over code and docs (BM25 keywords plus local embeddings, fused by rank). Use this for a targeted lookup, or when you need filters by folder or chunk kind; for a question you'll answer in prose, use ask_codebase instead. Returns ranked chunks, each with a path:start-end citation, its symbol and a snippet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | How many results to return, 1 to 25. | |
| repo | No | Name of an indexed repo, as list_repos shows it. Leave out when only one repo is indexed. | |
| kinds | No | Only these chunk kinds: function, class, method, interface, type, enum, module, section (docs) or code (other files). | |
| query | Yes | An identifier (normalizeRetryOptions) or plain words. | |
| path_prefix | No | Only consider files under this path, e.g. "src/auth/" or "docs/". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| query | Yes | ||
| results | Yes |