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.
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) |