Find a symbol
find_symbolRetrieve full code, file locations, line ranges, callers, and callees for functions, classes, methods, or constants by name—pass multiple names or use fuzzy matching instead of file reads or grep.
Instructions
Look up functions, classes, methods or constants by name and get the whole
code of each, with file, line range and direct callers and callees. Use it
when you know the name ("show me create_order", "where is TokenBudget defined"),
and in place of a file read or a grep for a definition. Pass several names in
one call. A class longer than 2,000 characters gives an outline (its head and
one line per method); ask for "Class.method" for a method's code. Other code
longer than 6,000 characters is cut and marked (truncated). Set exact=false
to match part of a name when you are unsure of the spelling.
For every use of a name, use graph.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exact | No | True for exact match, False for fuzzy substring | |
| symbol_name | Yes | One name, or several with commas (e.g. 'create_server, TokenBudget, MAX_RETRIES') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||