local_explain_code
Explains code files or snippets in prose with a local model, reading files server-side to keep large code out of context and optionally answering a focused question.
Instructions
PREFER this tool over reading the file with Read when the file is large (>200 lines / >10 KB) and you only need an explanation, not the literal content.
Explains in prose what a code snippet/file does, with a local code model.
Pass 'path' to read the file server-side (the full code does NOT enter Claude's context; only
the explanation comes back) or 'code'. Optionally focus the explanation with 'question'.
With 'path' the model sees the file's line numbers, so it can answer where something is
("name: line") and you can then Read only that range with offset/limit.
Review the explanation: a local model writes it.
Args:
code: Code to explain (use this or 'path').
path: Path to a code file (read server-side).
question: Concrete question or focus (optional).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| path | No | ||
| question | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |