Read document pages
read_document_pagesRead a page range of a document as markdown.
Pages are transcribed from rendered pixels, so tables and scanned text come
through as text. A page that could not be transcribed appears as a marked
hole rather than being silently dropped — if you see one, say so instead of
reading past it.
Text is assembled from page windows, so `covered` may be slightly wider than
what you asked for; cite the page numbers in `covered`, not `requested`.
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": {
"document_id": "<document_id>",
"first_page": "<first_page>",
"last_page": "<last_page>"
},
"name": "read_document_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| last_page | Yes | Last page to read. Spans longer than 40 pages are clamped to 40 from first_page. | |
| first_page | Yes | First page to read (1-based, as the PDF renders). | |
| document_id | Yes | Document id from list_government_documents or search_documents. |