Read document file
read-document-fileRead the text of a stored document file, such as a bank statement PDF, page by page.
WHEN TO USE: To read a statement's ending balance, closing date and lines
before recording it with record-statement-balance. Find file documents with
list-documents (they carry a file object).
RETURNS: page_count and the requested pages as text, at most
10 per call; read further with first_page.
NOTES: Reads a PDF's text layer. A statement a bank generates has one; a scanned PDF does not, and its pages come back empty, and a photo (PNG, JPEG) has none to read — ask the user for the figures then. For a text document use get-document.
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>"
},
"name": "read-document-file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_pages | No | Pages to read, at most 10 | |
| first_page | No | First page to read (1-based) | |
| document_id | Yes | The file document's id |