search_codebase
Search a codebase by concept, symbol, identifier, or path to enumerate matches, resolve identifiers to symbols, and locate files for deeper context.
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, literal, a|b|c or regex queries return
lines (path, line, kind, text; definitions first, one group per
alternative; in names the enclosing symbol until it changes) 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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | implementation | test | config | doc. | |
| mode | No | auto | symbol | path | concept | hybrid. | auto |
| repo | No | Usually omitted. | |
| limit | No | Max results, up to 20. | |
| query | No | Identifier, `a|b` alternation, regex, path, or natural language. | |
| symbol_kind | No | function | class | method | ... |