describe_symbol
Inspect a symbol's definition, callers, callees, and tests in one call before editing; for classes, view bases, subtypes, and member signatures instead of the full body.
Instructions
One call to understand a symbol before changing it: its code, callers, callees and tests; for a class, its bases, subtypes and member signatures instead of the body. No read_file needed after. Calls and types need the graph layer; definition and tests always work.
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": "<symbol>"
},
"name": "describe_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Path fragment, to pick one of several definitions. | |
| source | No | Source name. Omit when only one source applies. | |
| symbol | Yes | Identifier, e.g. `MyClass` or `MyClass.handleClick`. | |
| tests_limit | No | Max tests. | |
| callees_limit | No | Max callees. | |
| callers_limit | No | Max callers. |