Get a document and its parsed text
get_documentRetrieve a document's processing status, page count, and parsed text with tables as markdown, and optionally get per-page layout with bounding boxes.
Instructions
Fetch a document's processing status, page count and parsed text (tables as markdown). Set include_layout for per-page sections with bounding boxes. Free.
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": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | ||
| include_layout | No | Return the full per-page layout (sections, tables, boxes) instead of plain text. |