doc_summarize
Summarize an entire document or a specified chunk range to grasp the gist before reading details, with optional refresh and token target.
Instructions
Summarize a whole document or a range of its chunks. Use this to get the gist of something too large to read, before deciding which parts to pull verbatim. The whole-document summary is cached, so asking again is free.
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": {
"doc_id": "<doc_id>"
},
"name": "doc_summarize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last chunk index (inclusive) | |
| from | No | First chunk index (inclusive) | |
| doc_id | Yes | Document id returned by doc_ingest | |
| refresh | No | Ignore the cached whole-document summary | |
| target_tokens | No | Rough length of the summary (default 500) |