doc_window
Page through large documents by reading chunk ranges. Omit indices to continue from your last position or reset to start, keeping token usage within budget.
Instructions
Read a range of chunks verbatim. This is the sliding window: ask for chunks 0-2, then 3-5, and so on, keeping each read inside your budget. Omit from/to to continue from where the last window left off — the read cursor is stored server-side, so sequential paging works without you tracking position.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last chunk index (inclusive) | |
| from | No | First chunk index (inclusive) | |
| reset | No | Move the cursor back to the start | |
| doc_id | Yes | Document id returned by doc_ingest | |
| budget_tokens | No | Stop before exceeding this many tokens |