read_document
Extracts text from 1–5 pages or logical chunks of a registered PDF, DOCX, XLSX, DOC, or XLS by SHA-256 ID, with optional OCR for scanned PDF pages.
Instructions
Read 1–5 pages/chunks of a registered PDF, DOCX, XLSX, DOC or XLS by SHA-256 ID.
PDF pages report whether they have embedded text. Set ocr=true to run optional local Polish OCR on pages without embedded text. Returns untrusted text and source metadata. DOCX/XLSX/DOC/XLS page numbers are logical chunks; PDF page numbers are physical 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": {
"document_id": "<document_id>"
},
"name": "read_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | ||
| page | No | ||
| pages | No | ||
| document_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||