Read a document by its link
get_documentReturns a document made with ReflowPDF (by you, or opened in the editor from your link) as it is now — the person may have edited it in the editor: its source HTML, template data and revision. Read it before changing it with update_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": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | The document_id (or the edit link) from render_pdf, render_template or open_in_editor. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | Who wrote this revision: you, or the person in the editor. | |
| data | Yes | ||
| html | Yes | The document's source (a template when data is not empty). | |
| kind | No | An HTML document (its {{ … }} is text), or a template with its data. | |
| name | No | ||
| guest | No | Printed without an account: the pages carry the ReflowPDF mark. | |
| owned | No | The document is the person's account's: your prints of it count to their plan. | |
| title | No | The document's title. | |
| editUrl | Yes | ||
| previews | No | Pages as pictures (PNG), kept with the PDF for its day. | |
| revision | Yes | ||
| updatedAt | Yes | ||
| documentId | Yes |