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.
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_window"
}
}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 |