explain
Extract a function or class body with called dependencies by symbol name, or get a structural file overview by path, so agents avoid reading entire files.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | File to explain (overview mode if no symbol given). | |
| root | No | Absolute project root. Required with linked worktrees; subagents must pass their own worktree root on every 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. |