Find a symbol
find_symbolRetrieves full code of functions, classes, methods, or constants by name with file, line range, callers, and callees. Pass several names at once instead of using grep or file reads.
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 | |||