doc_read
Read up to five specific PDF pages with stable line anchors and session duplicate-read tracking; optionally render page PNGs or zoom tiles for charts and scanned pages.
Instructions
Read up to 5 specific PDF pages per call (<=6,000 tokens) with stable line anchors (e.g. p12:L07) and a session duplicate-read ledger. Optionally renders page PNGs or 2x2 zoom tiles as native MCP ImageContent for charts or scanned pages.
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": {
"pages": "<pages>"
},
"name": "doc_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to a PDF inside allowed --root directories (optional if doc_id is supplied). | |
| force | No | Set true to re-return pages already recorded in the session read ledger. | |
| image | No | Visual rendering mode: 'false' (text only), 'page' (full-page PNG), or 'tiles' (2x2 high-res zoom crops). | false |
| pages | Yes | 1-based physical page numbers to read (1 to 5 pages per call). | |
| doc_id | No | Previously opened doc_id returned by doc_outline. | |
| line_range | No | Optional [start_line, end_line] 1-based line bounds within each requested page. | |
| max_chars_per_page | No | Character cap per page to protect context window budget. |