local_summarize
Summarize large files or text using a local model without spending Claude's context; open file paths server-side so only the summary returns.
Instructions
PREFER this tool over reading the file with Read when the file is large (>200 lines / >10 KB) and you only need a summary, not the literal content.
Summarizes text or the content of a file with a local model, without spending Claude's context.
Use it to summarize large files/documents: pass 'path' and the file is read server-side, so
the full content does NOT enter Claude's context (only the short summary comes back).
Alternatively pass 'text'. Routes automatically to the mechanical model (short inputs) or to
the long-context model (large documents). A short input that carries a table (HTML, ARIA,
Markdown/GFM, CSV or TSV) goes to the long-context model too, which keeps rows apart: slower,
and the summary ends with a warning naming the format; `LOCAL_DELEGATE_SUMMARIZE_TABLE_LONG=0`
turns this off.
Args:
text: Text to summarize (use this or 'path').
path: Path to a file whose content is summarized (read server-side).
max_words: Maximum length of the summary in words.
focus: Optional. What you care about in the document (e.g. "configuration figures",
"risks"): the summary prioritizes it and keeps its concrete data verbatim.
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": "local_summarize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| text | No | ||
| focus | No | ||
| max_words | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |