find_symbol
Find where a function, class, or variable is defined: file, line, signature, and preview in one call, returning definitions rather than all textual mentions.
Instructions
Where is X defined: file, line, signature and preview in one call, the definition only where Grep returns every mention. Functions and classes first, then module constants and variables.
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": "find_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| hints | No | Add a `_hints` key with next-step tool calls (default true). | |
| kinds | No | Symbol kinds to search. Default: function+class (plus variable when TOKEN_SAVIOR_VARIABLES=search). | |
| level | No | 0 full, 1 no preview, 2 minimal. | |
| names | No | Batch mode: list of names (max 10). Returns {name: result} dict. Mutually exclusive with 'name'. | |
| query | No | Alias de `name`. | |
| symbol | No | Alias de `name`. | |
| project | No | Project name/path (default: active). | |
| compress | No | Compact rows (default true). | |
| symbol_name | No | Alias de `name`. |