search_codebase
Find code by concept, symbol, or path using hybrid search. Enumerates matches, resolves identifiers to symbol IDs, and surfaces candidate files to read.
Instructions
Find code by concept, symbol, or path — hybrid codebase search.
For a how/where/why question call get_answer. Use this to enumerate
matches, resolve an identifier to a symbol_id, or find files for
get_context. Identifier or literal queries return `lines` (path, line,
kind, text; definitions first) read from live files; when `complete` is
true they are every match, so no grep is needed. `candidates` lists
distinct files to Read, best first.
Args:
query: identifier, path, or natural language.
limit: max results (default 5).
mode: auto (by query shape) | symbol | path | concept | hybrid.
kind: implementation | test | config | doc.
symbol_kind: function | class | method | ...
page_type: file_page | module_page.
repo: alias, or "all" for workspace-wide.
pattern: alias for query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| mode | No | auto | |
| repo | No | ||
| limit | No | ||
| query | No | ||
| pattern | No | ||
| page_type | No | ||
| symbol_kind | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |