find_code
Search indexed code symbols by name, keyword, or docstring to get ranked signatures and locations without loading file content, including third-party libraries.
Instructions
Searches indexed symbols (functions, classes, methods, constants, types) by name, keyword, or docstring. Returns ranked results with signatures and locations, no file content loaded. Also searches indexed third-party libraries. ~50 tokens per result vs ~2000 for reading each file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "find_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Filter by symbol kind | |
| repo | No | Filter to a specific repository (as shown in list_repos) | |
| query | Yes | Search query (name, keyword, or description) | |
| language | No | Filter by programming language (e.g., python, typescript, go) | |
| max_results | No | Maximum results to return | |
| file_pattern | No | Glob pattern to filter by file path (e.g., 'src/**/*.py') | |
| token_budget | No | Optional token budget -- greedy-pack results until budget is exhausted. Reports tokens_used and tokens_remaining in _meta. |