Find a symbol
find_symbolRetrieves full code for functions, classes, methods, or constants by name, including file, line range, callers, and callees, so you can inspect a definition without reading files or grepping.
Instructions
Get the whole code of functions, classes, methods or constants by name ("show
me create_order"), with file, line range, callers and callees. Use it instead of a
file read or grep for a definition. Pass several names in one call. A class over
2,000 characters gives an outline; ask for "Class.method" for one method. For
every use of a name, use graph.
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": {
"symbol_name": "<symbol_name>"
},
"name": "find_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exact | No | False matches part of a name | |
| symbol_name | Yes | One name, or several with commas |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||