find_symbol
Locate symbols by name in a codebase, retrieving file, line, signature, and preview. Supports functions, classes, and variables, with optional hints for next steps.
Instructions
Locate a symbol: file, line, signature, minimal preview. Searches functions and classes by default — pass kinds=["variable"] for module globals, constants, and class attributes. A miss reports which kinds were searched.
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'. | |
| symbol | No | Alias de `name`. | |
| project | No | Project name/path (default: active). | |
| compress | No | Compact rows (default true). | |
| symbol_name | No | Alias de `name`. |