explain
Extract a function, class, or variable body with called functions and dependencies by symbol name, or get a structural file overview from a path without reading the whole file.
Instructions
Extract a specific function/class body with its dependencies, without reading the entire file. Provide symbol name to get its code + called functions. Provide file path for a structural overview.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "explain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | File to explain (overview mode if no symbol given). | |
| root | No | Absolute project root. Omit only where this session started; required elsewhere and on every subagent call. | |
| depth | No | How many levels of called functions to include. Default: 1. Use 0 for just the symbol. | |
| format | No | source: body and location only, no callers/tests/dependencies. Default full. | |
| symbol | No | Function, class, or variable name to explain. | |
| symbols | No | Batch independent symbols in one call, instead of repeated reads. Use instead of symbol/file. | |
| max_tokens | No | Batch response byte/4 budget; default 4000. Whole omitted bodies are reported. |