ReflowPDF is an MCP server published by com.reflowpdf, hosted at app.reflowpdf.com. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 13 tools, including render_pdf, render_template, check_document, list_templates, get_template.
Paged PDFs from HTML and CSS or templates, with an editor link to keep editing every document.
1 connections through 5 shared values. Tap any node.
Lays out a whole HTML document (with its CSS) as paged print and returns a download link to the PDF, valid 24 hours, and the document's edit link in the ReflowPDF editor. Use @page for paper and margins, margin boxes for headers, footers and page numbers; JavaScript does not run. Read read_guide topic "html" before the first document. To change the document later, use update_document with its document_id.
| Parameter | Type | Description |
|---|---|---|
| html * | string | The whole HTML document: <!doctype html>, <html lang>, a <title>, a <style> in <head> with @page. Self-contained; images and fonts by https URL, data: URI or an upload_image link. |
| pdf_a | string | Declare PDF/A (Pro and Max plans): "3a" — ISO 19005-3 level A, tagged, includes PDF/UA-1 (archive and accessibility at once); "1b" — ISO 19005-1 level B (PDF 1.4: transparency flattened into images). A document that cannot conform is refused with the reason. |
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
| pdf_ua |
| integer |
| The PDF/UA part the file declares: 1 (ISO 14289-1, PDF 1.7) — every print declares it; 2 (ISO 14289-2, PDF 2.0; Pro and Max plans). Not with pdf_a. |
| preview | boolean | Pictures (PNG) of pages come with the answer, so you can check the layout, fonts and images before giving the links. Default: true. |
| filename | string | The PDF file name, e.g. "invoice-1042.pdf". Default: the document's <title>. |
| preview_pages | array | Which pages to see, 1-based; -1 is the last page. Default: page 1 and the last page (a page that spilled over shows there). Up to 4, e.g. [1, 2, -1]. Every answer has the outline: which heading starts on which page. |
| shrink_to_fit | boolean | Print a document wider than its page smaller, to fit, as a browser's print does: every length then prints scaled down. Default: false, lengths print at their size (20mm is 20mm). Prefer fitting the layout to the page; use this for a page made for a screen. |
{
"name": "render_pdf",
"title": "Print HTML to PDF",
"description": "Lays out a whole HTML document (with its CSS) as paged print and returns a download link to the PDF, valid 24 hours, and the document's edit link in the ReflowPDF editor. Use @page for paper and margins, margin boxes for headers, footers and page numbers; JavaScript does not run. Read read_guide topic \"html\" before the first document. To change the document later, use update_document with its document_id.",
"inputSchema": {
"type": "object",
"required": [
"html"
],
"properties": {
"html": {
"type": "string",
"description": "The whole HTML document: <!doctype html>, <html lang>, a <title>, a <style> in <head> with @page. Self-contained; images and fonts by https URL, data: URI or an upload_image link."
},
"pdf_a": {
"enum": [
"3a",
"1b"
],
"type": "string",
"description": "Declare PDF/A (Pro and Max plans): \"3a\" — ISO 19005-3 level A, tagged, includes PDF/UA-1 (archive and accessibility at once); \"1b\" — ISO 19005-1 level B (PDF 1.4: transparency flattened into images). A document that cannot conform is refused with the reason."
},
"pdf_ua": {
"enum": [
1,
2
],
"type": "integer",
"description": "The PDF/UA part the file declares: 1 (ISO 14289-1, PDF 1.7) — every print declares it; 2 (ISO 14289-2, PDF 2.0; Pro and Max plans). Not with pdf_a."
},
"preview": {
"type": "boolean",
"description": "Pictures (PNG) of pages come with the answer, so you can check the layout, fonts and images before giving the links. Default: true."
},
"filename": {
"type": "string",
"description": "The PDF file name, e.g. \"invoice-1042.pdf\". Default: the document's <title>."
},
"preview_pages": {
"type": "array",
"items": {
"type": "integer"
},
"maxItems": 4,
"description": "Which pages to see, 1-based; -1 is the last page. Default: page 1 and the last page (a page that spilled over shows there). Up to 4, e.g. [1, 2, -1]. Every answer has the outline: which heading starts on which page."
},
"shrink_to_fit": {
"type": "boolean",
"description": "Print a document wider than its page smaller, to fit, as a browser's print does: every length then prints scaled down. Default: false, lengths print at their size (20mm is 20mm). Prefer fitting the layout to the page; use this for a page made for a screen."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"url",
"expiresAt",
"filename",
"pages",
"bytes",
"mark",
"notes",
"title",
"pdfUrl",
"sizeKb",
"paper",
"guest",
"previews"
],
"properties": {
"url": {
"type": "string",
"description": "The link, valid 24 hours."
},
"mark": {
"enum": [
"none",
"guest",
"free-allowance-used"
],
"type": "string",
"description": "Whether the PDF carries the ReflowPDF mark, and why."
},
"bytes": {
"type": "integer"
},
"guest": {
"type": "boolean",
"description": "Printed without an account: the pages carry the ReflowPDF mark."
},
"notes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Facts about this PDF: how long its link works, its mark, what was not fetched or filled."
},
"pages": {
"type": "integer"
},
"paper": {
"type": "string",
"description": "Its paper, e.g. \"A4\", \"Letter\", \"210 × 99 mm\"; empty when unknown."
},
"title": {
"type": "string",
"description": "The document's title."
},
"pdfUrl": {
"type": "string",
"description": "The PDF (the same link as url)."
},
"sizeKb": {
"type": "integer",
"description": "The PDF's size in KB."
},
"timing": {
"type": "object",
"properties": {
"writeMs": {
"type": "number"
},
"layoutMs": {
"type": "number"
}
},
"description": "The engine's own parts of it, when it states them: layoutMs (styles, layout and pagination) and writeMs (writing the PDF)."
},
"editUrl": {
"type": "string",
"description": "The document in the ReflowPDF editor: the person edits it there (the link is the document; it lasts while it is used)."
},
"outline": {
"type": "array",
"items": {
"type": "object",
"required": [
"level",
"title"
],
"properties": {
"page": {
"type": "integer"
},
"level": {
"type": "integer"
},
"title": {
"type": "string"
}
}
},
"description": "The document's headings (h1–h6, the PDF's bookmarks) in order, each with the page it starts on: pick preview_pages by it."
},
"preview": {
"type": "string",
"description": "Which pages came with this answer as pictures (PNG), or why none did."
},
"filename": {
"type": "string"
},
"previews": {
"type": "array",
"items": {
"type": "object",
"required": [
"page",
"url",
"width",
"height"
],
"properties": {
"url": {
"type": "string"
},
"page": {
"type": "integer"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
}
},
"description": "Pages as pictures (PNG), kept with the PDF for its day."
},
"renderMs": {
"type": "integer",
"description": "How long the print took on the server, in milliseconds (the engine and its adapter)."
},
"revision": {
"type": "integer",
"description": "Its revision: name it to update_document as base_revision."
},
"expiresAt": {
"type": "string",
"description": "When the link stops working (ISO 8601)."
},
"standards": {
"type": "object",
"properties": {
"pdfA": {
"type": [
"string",
"null"
]
},
"pdfUa": {
"type": [
"integer",
"null"
]
}
},
"description": "What the PDF declares, read from its file: pdfUa (its PDF/UA part) and pdfA (its PDF/A part and level, e.g. \"3a\"), null when it declares none."
},
"documentId": {
"type": "string",
"description": "The document, for get_document and update_document."
},
"missingFonts": {
"type": "array",
"items": {
"type": "string"
},
"description": "Font families the document named that no face answered: their text took the next family of its list."
},
"missingVariables": {
"type": "array",
"items": {
"type": "string"
},
"description": "Template values the data did not have (printed empty)."
},
"skippedResources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Images, fonts or style sheets the server could not fetch."
}
}
},
"annotations": {
"title": "Print HTML to PDF",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}Fills a template with JSON data and prints it to PDF (a download link, valid 24 hours, and the edit link in the editor, where its template and data stay editable — until the person edits it on the page, which makes it a plain HTML document: then change its html). Either a gallery template (template_id from list_templates; without data it prints its sample) or your own template source. Send data in the shape of the template's sample (get_template). The language: read_guide topic "templates".
| Parameter | Type | Description |
|---|---|---|
| data | object | The values the template reads, in the shape of its sample data. |
| pdf_a | string | Declare PDF/A (Pro and Max plans): "3a" — ISO 19005-3 level A, tagged, includes PDF/UA-1 (archive and accessibility at once); "1b" — ISO 19005-1 level B (PDF 1.4: transparency flattened into images). A document that cannot conform is refused with the reason. |
| pdf_ua | integer | The PDF/UA part the file declares: 1 (ISO 14289-1, PDF 1.7) — every print declares it; 2 (ISO 14289-2, PDF 2.0; Pro and Max plans). Not with pdf_a. |
| preview | boolean | Pictures (PNG) of pages come with the answer, so you can check the layout, fonts and images before giving the links. Default: true. |
| filename | string | The PDF file name. Default: the template's name or the document's <title>. |
| template | string | Your own template source (HTML with {{ value }}, {% for %}, {% if %}), instead of template_id. |
| template_id | string | A gallery template's id, from list_templates. |
| preview_pages | array | Which pages to see, 1-based; -1 is the last page. Default: page 1 and the last page (a page that spilled over shows there). Up to 4, e.g. [1, 2, -1]. Every answer has the outline: which heading starts on which page. |
| shrink_to_fit | boolean | Print a document wider than its page smaller, to fit, as a browser's print does: every length then prints scaled down. Default: false, lengths print at their size (20mm is 20mm). Prefer fitting the layout to the page; use this for a page made for a screen. |
{
"name": "render_template",
"title": "Fill a template and print it",
"description": "Fills a template with JSON data and prints it to PDF (a download link, valid 24 hours, and the edit link in the editor, where its template and data stay editable — until the person edits it on the page, which makes it a plain HTML document: then change its html). Either a gallery template (template_id from list_templates; without data it prints its sample) or your own template source. Send data in the shape of the template's sample (get_template). The language: read_guide topic \"templates\".",
"inputSchema": {
"type": "object",
"properties": {
"data": {
"type": "object",
"description": "The values the template reads, in the shape of its sample data.",
"additionalProperties": true
},
"pdf_a": {
"enum": [
"3a",
"1b"
],
"type": "string",
"description": "Declare PDF/A (Pro and Max plans): \"3a\" — ISO 19005-3 level A, tagged, includes PDF/UA-1 (archive and accessibility at once); \"1b\" — ISO 19005-1 level B (PDF 1.4: transparency flattened into images). A document that cannot conform is refused with the reason."
},
"pdf_ua": {
"enum": [
1,
2
],
"type": "integer",
"description": "The PDF/UA part the file declares: 1 (ISO 14289-1, PDF 1.7) — every print declares it; 2 (ISO 14289-2, PDF 2.0; Pro and Max plans). Not with pdf_a."
},
"preview": {
"type": "boolean",
"description": "Pictures (PNG) of pages come with the answer, so you can check the layout, fonts and images before giving the links. Default: true."
},
"filename": {
"type": "string",
"description": "The PDF file name. Default: the template's name or the document's <title>."
},
"template": {
"type": "string",
"description": "Your own template source (HTML with {{ value }}, {% for %}, {% if %}), instead of template_id."
},
"template_id": {
"type": "string",
"description": "A gallery template's id, from list_templates."
},
"preview_pages": {
"type": "array",
"items": {
"type": "integer"
},
"maxItems": 4,
"description": "Which pages to see, 1-based; -1 is the last page. Default: page 1 and the last page (a page that spilled over shows there). Up to 4, e.g. [1, 2, -1]. Every answer has the outline: which heading starts on which page."
},
"shrink_to_fit": {
"type": "boolean",
"description": "Print a document wider than its page smaller, to fit, as a browser's print does: every length then prints scaled down. Default: false, lengths print at their size (20mm is 20mm). Prefer fitting the layout to the page; use this for a page made for a screen."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"url",
"expiresAt",
"filename",
"pages",
"bytes",
"mark",
"notes",
"title",
"pdfUrl",
"sizeKb",
"paper",
"guest",
"previews"
],
"properties": {
"url": {
"type": "string",
"description": "The link, valid 24 hours."
},
"mark": {
"enum": [
"none",
"guest",
"free-allowance-used"
],
"type": "string",
"description": "Whether the PDF carries the ReflowPDF mark, and why."
},
"bytes": {
"type": "integer"
},
"guest": {
"type": "boolean",
"description": "Printed without an account: the pages carry the ReflowPDF mark."
},
"notes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Facts about this PDF: how long its link works, its mark, what was not fetched or filled."
},
"pages": {
"type": "integer"
},
"paper": {
"type": "string",
"description": "Its paper, e.g. \"A4\", \"Letter\", \"210 × 99 mm\"; empty when unknown."
},
"title": {
"type": "string",
"description": "The document's title."
},
"pdfUrl": {
"type": "string",
"description": "The PDF (the same link as url)."
},
"sizeKb": {
"type": "integer",
"description": "The PDF's size in KB."
},
"timing": {
"type": "object",
"properties": {
"writeMs": {
"type": "number"
},
"layoutMs": {
"type": "number"
}
},
"description": "The engine's own parts of it, when it states them: layoutMs (styles, layout and pagination) and writeMs (writing the PDF)."
},
"editUrl": {
"type": "string",
"description": "The document in the ReflowPDF editor: the person edits it there (the link is the document; it lasts while it is used)."
},
"outline": {
"type": "array",
"items": {
"type": "object",
"required": [
"level",
"title"
],
"properties": {
"page": {
"type": "integer"
},
"level": {
"type": "integer"
},
"title": {
"type": "string"
}
}
},
"description": "The document's headings (h1–h6, the PDF's bookmarks) in order, each with the page it starts on: pick preview_pages by it."
},
"preview": {
"type": "string",
"description": "Which pages came with this answer as pictures (PNG), or why none did."
},
"filename": {
"type": "string"
},
"previews": {
"type": "array",
"items": {
"type": "object",
"required": [
"page",
"url",
"width",
"height"
],
"properties": {
"url": {
"type": "string"
},
"page": {
"type": "integer"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
}
},
"description": "Pages as pictures (PNG), kept with the PDF for its day."
},
"renderMs": {
"type": "integer",
"description": "How long the print took on the server, in milliseconds (the engine and its adapter)."
},
"revision": {
"type": "integer",
"description": "Its revision: name it to update_document as base_revision."
},
"expiresAt": {
"type": "string",
"description": "When the link stops working (ISO 8601)."
},
"standards": {
"type": "object",
"properties": {
"pdfA": {
"type": [
"string",
"null"
]
},
"pdfUa": {
"type": [
"integer",
"null"
]
}
},
"description": "What the PDF declares, read from its file: pdfUa (its PDF/UA part) and pdfA (its PDF/A part and level, e.g. \"3a\"), null when it declares none."
},
"documentId": {
"type": "string",
"description": "The document, for get_document and update_document."
},
"missingFonts": {
"type": "array",
"items": {
"type": "string"
},
"description": "Font families the document named that no face answered: their text took the next family of its list."
},
"missingVariables": {
"type": "array",
"items": {
"type": "string"
},
"description": "Template values the data did not have (printed empty)."
},
"skippedResources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Images, fonts or style sheets the server could not fetch."
}
}
},
"annotations": {
"title": "Fill a template and print it",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}Prints a document only to check it — the person sees nothing: no PDF link, no card, nothing counted to their plan's pages. Answers with its pages as pictures, which heading starts on which page (outline), what runs past the paper, fonts not found, the tag tree a screen reader gets, the standards the file declares and, on the Pro and Max plans, veraPDF's report on the standard it declares (PDF/UA-1, PDF/UA-2 or PDF/A-3a): each rule that fails, with its pages. Use it to try a layout, to find where a part lands, to fix what the validator finds; then give the person the document with render_pdf, render_template or update_document.
| Parameter | Type | Description |
|---|---|---|
| html | string | The whole HTML document to check, as render_pdf takes it. |
| tags | boolean | The tag tree in the answer. Default: true. |
| pdf_a | string | Declare PDF/A (Pro and Max plans): "3a" — ISO 19005-3 level A, tagged, includes PDF/UA-1 (archive and accessibility at once); "1b" — ISO 19005-1 level B (PDF 1.4: transparency flattened into images). A document that cannot conform is refused with the reason. |
| pdf_ua | integer | The PDF/UA part the file declares: 1 (ISO 14289-1, PDF 1.7) — every print declares it; 2 (ISO 14289-2, PDF 2.0; Pro and Max plans). Not with pdf_a. |
| document_id | string | Or a document by its link (or its edit link), as it is now: its source, data and standards. |
| preview_pages | array | Which pages to see, 1-based; -1 is the last page. Default: page 1 and the last. Pick them by the outline of an earlier answer. |
| shrink_to_fit | boolean | Print a document wider than its page smaller, to fit, as a browser's print does: every length then prints scaled down. Default: false, lengths print at their size (20mm is 20mm). Prefer fitting the layout to the page; use this for a page made for a screen. |
{
"name": "check_document",
"title": "Check a document while you work on it",
"description": "Prints a document only to check it — the person sees nothing: no PDF link, no card, nothing counted to their plan's pages. Answers with its pages as pictures, which heading starts on which page (outline), what runs past the paper, fonts not found, the tag tree a screen reader gets, the standards the file declares and, on the Pro and Max plans, veraPDF's report on the standard it declares (PDF/UA-1, PDF/UA-2 or PDF/A-3a): each rule that fails, with its pages. Use it to try a layout, to find where a part lands, to fix what the validator finds; then give the person the document with render_pdf, render_template or update_document.",
"inputSchema": {
"type": "object",
"properties": {
"html": {
"type": "string",
"description": "The whole HTML document to check, as render_pdf takes it."
},
"tags": {
"type": "boolean",
"description": "The tag tree in the answer. Default: true."
},
"pdf_a": {
"enum": [
"3a",
"1b"
],
"type": "string",
"description": "Declare PDF/A (Pro and Max plans): \"3a\" — ISO 19005-3 level A, tagged, includes PDF/UA-1 (archive and accessibility at once); \"1b\" — ISO 19005-1 level B (PDF 1.4: transparency flattened into images). A document that cannot conform is refused with the reason."
},
"pdf_ua": {
"enum": [
1,
2
],
"type": "integer",
"description": "The PDF/UA part the file declares: 1 (ISO 14289-1, PDF 1.7) — every print declares it; 2 (ISO 14289-2, PDF 2.0; Pro and Max plans). Not with pdf_a."
},
"document_id": {
"type": "string",
"description": "Or a document by its link (or its edit link), as it is now: its source, data and standards."
},
"preview_pages": {
"type": "array",
"items": {
"type": "integer"
},
"maxItems": 4,
"description": "Which pages to see, 1-based; -1 is the last page. Default: page 1 and the last. Pick them by the outline of an earlier answer."
},
"shrink_to_fit": {
"type": "boolean",
"description": "Print a document wider than its page smaller, to fit, as a browser's print does: every length then prints scaled down. Default: false, lengths print at their size (20mm is 20mm). Prefer fitting the layout to the page; use this for a page made for a screen."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"pages",
"preview",
"notes"
],
"properties": {
"tags": {
"type": "object",
"properties": {
"cut": {
"type": "boolean"
},
"text": {
"type": "string"
},
"lines": {
"type": "integer"
}
},
"description": "The tag tree a screen reader gets: text (each element and its text, indented), lines, cut (when longer than shown)."
},
"notes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Facts about this PDF: how long its link works, its mark, what was not fetched or filled."
},
"pages": {
"type": "integer"
},
"outline": {
"type": "array",
"items": {
"type": "object",
"required": [
"level",
"title"
],
"properties": {
"page": {
"type": "integer"
},
"level": {
"type": "integer"
},
"title": {
"type": "string"
}
}
},
"description": "The document's headings (h1–h6, the PDF's bookmarks) in order, each with the page it starts on: pick preview_pages by it."
},
"preview": {
"type": "string",
"description": "Which pages came with this answer as pictures (PNG), or why none did."
},
"standards": {
"type": "object",
"properties": {
"pdfA": {
"type": [
"string",
"null"
]
},
"pdfUa": {
"type": [
"integer",
"null"
]
}
},
"description": "What the PDF declares, read from its file: pdfUa (its PDF/UA part) and pdfA (its PDF/A part and level, e.g. \"3a\"), null when it declares none."
},
"validation": {
"type": "object",
"description": "veraPDF on the standard the file declares (Pro and Max plans): profile, compliant, and the rules that fail — id (the standard's clause and test), title, plain (what it means for a reader), priority, count, pages; gated: true on another plan; error: why it could not run.",
"additionalProperties": true
},
"missingFonts": {
"type": "array",
"items": {
"type": "string"
},
"description": "Font families the document named that no face answered: their text took the next family of its list."
},
"skippedResources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Images, fonts or style sheets the server could not fetch."
}
}
},
"annotations": {
"title": "Check a document while you work on it",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Lists the gallery's ready documents — invoices, quotes, receipts, statements, reports, contracts, letters, CVs, certificates, tickets, labels, menus and more — each a template with sample data. Search by a word ("invoice", "contract") or a category.
| Parameter | Type | Description |
|---|---|---|
| query | string | Words to look for in the name, purpose or category. |
| category | string | Only this category. |
{
"name": "list_templates",
"title": "Find a document template",
"description": "Lists the gallery's ready documents — invoices, quotes, receipts, statements, reports, contracts, letters, CVs, certificates, tickets, labels, menus and more — each a template with sample data. Search by a word (\"invoice\", \"contract\") or a category.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Words to look for in the name, purpose or category."
},
"category": {
"enum": [
"Finance",
"Sales",
"Business",
"HR & Legal",
"Government",
"Logistics",
"Health",
"Events",
"Personal",
"Marketing",
"Showcase"
],
"type": "string",
"description": "Only this category."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"templates"
],
"properties": {
"templates": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"name",
"category",
"description",
"paper"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"paper": {
"type": "string"
},
"category": {
"type": "string"
},
"description": {
"type": "string"
}
}
}
}
}
},
"annotations": {
"title": "Find a document template",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Returns a gallery template's source and its sample data, to fill with the person's values (render_template) or to adapt into your own template.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The template's id, from list_templates. |
{
"name": "get_template",
"title": "Read a template and its sample data",
"description": "Returns a gallery template's source and its sample data, to fill with the person's values (render_template) or to adapt into your own template.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The template's id, from list_templates."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"id",
"name",
"category",
"description",
"paper",
"template",
"data"
],
"properties": {
"id": {
"type": "string"
},
"data": {
"type": "object",
"additionalProperties": true
},
"name": {
"type": "string"
},
"paper": {
"type": "string"
},
"category": {
"type": "string"
},
"template": {
"type": "string"
},
"description": {
"type": "string"
}
}
},
"annotations": {
"title": "Read a template and its sample data",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Returns the edit link of a document in the ReflowPDF editor, where the person edits it on the page and downloads it: your HTML, or a template with its data (kept as template and data, both editable). Use when the person wants to change the document themselves; you can read their changes and change it too (get_document, update_document).
| Parameter | Type | Description |
|---|---|---|
| data | object | The values of the template, if it is one. |
| html | string | The HTML document (or your own template source, with data). |
| name | string | The document's name in the editor. |
| template_id | string | A gallery template's id, instead of html. |
{
"name": "open_in_editor",
"title": "Open in the ReflowPDF editor",
"description": "Returns the edit link of a document in the ReflowPDF editor, where the person edits it on the page and downloads it: your HTML, or a template with its data (kept as template and data, both editable). Use when the person wants to change the document themselves; you can read their changes and change it too (get_document, update_document).",
"inputSchema": {
"type": "object",
"properties": {
"data": {
"type": "object",
"description": "The values of the template, if it is one.",
"additionalProperties": true
},
"html": {
"type": "string",
"description": "The HTML document (or your own template source, with data)."
},
"name": {
"type": "string",
"description": "The document's name in the editor."
},
"template_id": {
"type": "string",
"description": "A gallery template's id, instead of html."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"url",
"expiresAt",
"notes"
],
"properties": {
"url": {
"type": "string",
"description": "The link; it works until expiresAt."
},
"notes": {
"type": "array",
"items": {
"type": "string"
},
"description": "What to tell the person about this link."
},
"revision": {
"type": "integer"
},
"expiresAt": {
"type": "string",
"description": "When the link stops working (ISO 8601)."
},
"documentId": {
"type": "string"
}
}
},
"annotations": {
"title": "Open in the ReflowPDF editor",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Returns 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.
| Parameter | Type | Description |
|---|---|---|
| document_id * | string | The document_id (or the edit link) from render_pdf, render_template or open_in_editor. |
{
"name": "get_document",
"title": "Read a document by its link",
"description": "Returns 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.",
"inputSchema": {
"type": "object",
"required": [
"document_id"
],
"properties": {
"document_id": {
"type": "string",
"description": "The document_id (or the edit link) from render_pdf, render_template or open_in_editor."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"documentId",
"revision",
"by",
"html",
"data",
"editUrl",
"updatedAt"
],
"properties": {
"by": {
"enum": [
"assistant",
"editor"
],
"type": "string",
"description": "Who wrote this revision: you, or the person in the editor."
},
"data": {
"type": "object",
"additionalProperties": true
},
"html": {
"type": "string",
"description": "The document's source (a template when data is not empty)."
},
"kind": {
"enum": [
"html",
"template"
],
"type": "string",
"description": "An HTML document (its {{ … }} is text), or a template with its data."
},
"name": {
"type": "string"
},
"guest": {
"type": "boolean",
"description": "Printed without an account: the pages carry the ReflowPDF mark."
},
"owned": {
"type": "boolean",
"description": "The document is the person's account's: your prints of it count to their plan."
},
"title": {
"type": "string",
"description": "The document's title."
},
"editUrl": {
"type": "string"
},
"previews": {
"type": "array",
"items": {
"type": "object",
"required": [
"page",
"url",
"width",
"height"
],
"properties": {
"url": {
"type": "string"
},
"page": {
"type": "integer"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
}
},
"description": "Pages as pictures (PNG), kept with the PDF for its day."
},
"revision": {
"type": "integer"
},
"updatedAt": {
"type": "string"
},
"documentId": {
"type": "string"
}
}
},
"annotations": {
"title": "Read a document by its link",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Writes a new version of a document by its link — e.g. the person asks in the chat to remove something on page 2 — and prints it again: the PDF link, the same edit link (the editor open on it shows the change). The new version replaces the one before. A change of a few places: edits — each replaces one exact piece of the source as get_document returned it (cheaper than sending the whole document, and nothing else moves); a rewrite: the whole new html. With base_revision: a document the person changed after you read it is refused, so read it again.
| Parameter | Type | Description |
|---|---|---|
| data | object | The template's new data. Alone, only for a template (kind "template"); with html, non-empty data makes the document a template. Omitted: the data stays. |
| html | string | The whole new source. Omitted: the source stays (e.g. new data only). Not with edits. |
| name | string | A new name. |
| edits | array | Changes to the source instead of the whole html, applied in order, all or none: each old_str is text copied exactly from the source (get_document, at base_revision) and must occur in it exactly once — add surrounding text to make it unique; new_str takes its place (empty deletes it). |
| pdf_a | string | Declare PDF/A (Pro and Max plans): "3a" — ISO 19005-3 level A, tagged, includes PDF/UA-1 (archive and accessibility at once); "1b" — ISO 19005-1 level B (PDF 1.4: transparency flattened into images). A document that cannot conform is refused with the reason. Kept for the document's later prints; "no… |
| pdf_ua | integer | The PDF/UA part the file declares: 1 (ISO 14289-1, PDF 1.7) — every print declares it; 2 (ISO 14289-2, PDF 2.0; Pro and Max plans). Not with pdf_a. Kept for the document's later prints; 1 returns to the default. Omitted: the document's setting stays. |
| preview | boolean | Pictures (PNG) of pages come with the answer, so you can check the layout, fonts and images before giving the links. Default: true. |
| filename | string | A new PDF file name, kept for its later prints. Default: the name it was printed with (render_pdf filename), else its <title>. |
| document_id * | string | The document_id (or the edit link). |
| base_revision * | integer | The revision you read (get_document, or the last result). Required: a document the person changed after it is refused, never overwritten. |
| preview_pages | array | Which pages to see, 1-based; -1 is the last page. Default: page 1 and the last page (a page that spilled over shows there). Up to 4, e.g. [1, 2, -1]. Every answer has the outline: which heading starts on which page. |
| shrink_to_fit | boolean | Print a document wider than its page smaller, to fit, as a browser's print does: every length then prints scaled down. Default: false, lengths print at their size (20mm is 20mm). Prefer fitting the layout to the page; use this for a page made for a screen. Kept for the document's later prints. Omitt… |
{
"name": "update_document",
"title": "Change a document by its link",
"description": "Writes a new version of a document by its link — e.g. the person asks in the chat to remove something on page 2 — and prints it again: the PDF link, the same edit link (the editor open on it shows the change). The new version replaces the one before. A change of a few places: edits — each replaces one exact piece of the source as get_document returned it (cheaper than sending the whole document, and nothing else moves); a rewrite: the whole new html. With base_revision: a document the person changed after you read it is refused, so read it again.",
"inputSchema": {
"type": "object",
"required": [
"document_id",
"base_revision"
],
"properties": {
"data": {
"type": "object",
"description": "The template's new data. Alone, only for a template (kind \"template\"); with html, non-empty data makes the document a template. Omitted: the data stays.",
"additionalProperties": true
},
"html": {
"type": "string",
"description": "The whole new source. Omitted: the source stays (e.g. new data only). Not with edits."
},
"name": {
"type": "string",
"description": "A new name."
},
"edits": {
"type": "array",
"items": {
"type": "object",
"required": [
"old_str",
"new_str"
],
"properties": {
"new_str": {
"type": "string"
},
"old_str": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
},
"maxItems": 50,
"minItems": 1,
"description": "Changes to the source instead of the whole html, applied in order, all or none: each old_str is text copied exactly from the source (get_document, at base_revision) and must occur in it exactly once — add surrounding text to make it unique; new_str takes its place (empty deletes it)."
},
"pdf_a": {
"enum": [
"3a",
"1b",
"none"
],
"type": "string",
"description": "Declare PDF/A (Pro and Max plans): \"3a\" — ISO 19005-3 level A, tagged, includes PDF/UA-1 (archive and accessibility at once); \"1b\" — ISO 19005-1 level B (PDF 1.4: transparency flattened into images). A document that cannot conform is refused with the reason. Kept for the document's later prints; \"none\" declares none. Omitted: the document's setting stays."
},
"pdf_ua": {
"enum": [
1,
2
],
"type": "integer",
"description": "The PDF/UA part the file declares: 1 (ISO 14289-1, PDF 1.7) — every print declares it; 2 (ISO 14289-2, PDF 2.0; Pro and Max plans). Not with pdf_a. Kept for the document's later prints; 1 returns to the default. Omitted: the document's setting stays."
},
"preview": {
"type": "boolean",
"description": "Pictures (PNG) of pages come with the answer, so you can check the layout, fonts and images before giving the links. Default: true."
},
"filename": {
"type": "string",
"description": "A new PDF file name, kept for its later prints. Default: the name it was printed with (render_pdf filename), else its <title>."
},
"document_id": {
"type": "string",
"description": "The document_id (or the edit link)."
},
"base_revision": {
"type": "integer",
"description": "The revision you read (get_document, or the last result). Required: a document the person changed after it is refused, never overwritten."
},
"preview_pages": {
"type": "array",
"items": {
"type": "integer"
},
"maxItems": 4,
"description": "Which pages to see, 1-based; -1 is the last page. Default: page 1 and the last page (a page that spilled over shows there). Up to 4, e.g. [1, 2, -1]. Every answer has the outline: which heading starts on which page."
},
"shrink_to_fit": {
"type": "boolean",
"description": "Print a document wider than its page smaller, to fit, as a browser's print does: every length then prints scaled down. Default: false, lengths print at their size (20mm is 20mm). Prefer fitting the layout to the page; use this for a page made for a screen. Kept for the document's later prints. Omitted: the document's setting stays."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"url",
"expiresAt",
"filename",
"pages",
"bytes",
"mark",
"notes",
"title",
"pdfUrl",
"sizeKb",
"paper",
"guest",
"previews"
],
"properties": {
"url": {
"type": "string",
"description": "The link, valid 24 hours."
},
"mark": {
"enum": [
"none",
"guest",
"free-allowance-used"
],
"type": "string",
"description": "Whether the PDF carries the ReflowPDF mark, and why."
},
"bytes": {
"type": "integer"
},
"guest": {
"type": "boolean",
"description": "Printed without an account: the pages carry the ReflowPDF mark."
},
"notes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Facts about this PDF: how long its link works, its mark, what was not fetched or filled."
},
"pages": {
"type": "integer"
},
"paper": {
"type": "string",
"description": "Its paper, e.g. \"A4\", \"Letter\", \"210 × 99 mm\"; empty when unknown."
},
"title": {
"type": "string",
"description": "The document's title."
},
"pdfUrl": {
"type": "string",
"description": "The PDF (the same link as url)."
},
"sizeKb": {
"type": "integer",
"description": "The PDF's size in KB."
},
"timing": {
"type": "object",
"properties": {
"writeMs": {
"type": "number"
},
"layoutMs": {
"type": "number"
}
},
"description": "The engine's own parts of it, when it states them: layoutMs (styles, layout and pagination) and writeMs (writing the PDF)."
},
"editUrl": {
"type": "string",
"description": "The document in the ReflowPDF editor: the person edits it there (the link is the document; it lasts while it is used)."
},
"outline": {
"type": "array",
"items": {
"type": "object",
"required": [
"level",
"title"
],
"properties": {
"page": {
"type": "integer"
},
"level": {
"type": "integer"
},
"title": {
"type": "string"
}
}
},
"description": "The document's headings (h1–h6, the PDF's bookmarks) in order, each with the page it starts on: pick preview_pages by it."
},
"preview": {
"type": "string",
"description": "Which pages came with this answer as pictures (PNG), or why none did."
},
"filename": {
"type": "string"
},
"previews": {
"type": "array",
"items": {
"type": "object",
"required": [
"page",
"url",
"width",
"height"
],
"properties": {
"url": {
"type": "string"
},
"page": {
"type": "integer"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
}
},
"description": "Pages as pictures (PNG), kept with the PDF for its day."
},
"renderMs": {
"type": "integer",
"description": "How long the print took on the server, in milliseconds (the engine and its adapter)."
},
"revision": {
"type": "integer",
"description": "Its revision: name it to update_document as base_revision."
},
"expiresAt": {
"type": "string",
"description": "When the link stops working (ISO 8601)."
},
"standards": {
"type": "object",
"properties": {
"pdfA": {
"type": [
"string",
"null"
]
},
"pdfUa": {
"type": [
"integer",
"null"
]
}
},
"description": "What the PDF declares, read from its file: pdfUa (its PDF/UA part) and pdfA (its PDF/A part and level, e.g. \"3a\"), null when it declares none."
},
"documentId": {
"type": "string",
"description": "The document, for get_document and update_document."
},
"missingFonts": {
"type": "array",
"items": {
"type": "string"
},
"description": "Font families the document named that no face answered: their text took the next family of its list."
},
"missingVariables": {
"type": "array",
"items": {
"type": "string"
},
"description": "Template values the data did not have (printed empty)."
},
"skippedResources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Images, fonts or style sheets the server could not fetch."
}
}
},
"annotations": {
"title": "Change a document by its link",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": true
}
}Keeps an image and returns its link, to use as <img src> or CSS url() in render_pdf, render_template, open_in_editor and update_document — so the document stays small when you read it back. Give one of: image — a picture the person attached in the chat, as your client passes attached files to tools; image_base64 — bytes you have yourself (one you made, a small file you can read: base64 is text you write, so tens of KB). PNG, JPEG, HEIC, GIF, WebP or AVIF; a photo over 10 MB or in HEIC is brought to print size (4096 px on the long side). A picture the person attached that you can see but have no file of: call ask_for_images, which gives them a link to upload it from their device. An image at a public https address needs no upload: use that address. An SVG goes into the HTML as it is. The image lasts 30 days after a document using it last changed.
| Parameter | Type | Description |
|---|---|---|
| image | object | A picture the person attached in the chat. |
| image_base64 | string | The image's bytes, base64 (a data: URI is taken too). |
{
"name": "upload_image",
"title": "Keep an image for a document",
"description": "Keeps an image and returns its link, to use as <img src> or CSS url() in render_pdf, render_template, open_in_editor and update_document — so the document stays small when you read it back. Give one of: image — a picture the person attached in the chat, as your client passes attached files to tools; image_base64 — bytes you have yourself (one you made, a small file you can read: base64 is text you write, so tens of KB). PNG, JPEG, HEIC, GIF, WebP or AVIF; a photo over 10 MB or in HEIC is brought to print size (4096 px on the long side). A picture the person attached that you can see but have no file of: call ask_for_images, which gives them a link to upload it from their device. An image at a public https address needs no upload: use that address. An SVG goes into the HTML as it is. The image lasts 30 days after a document using it last changed.",
"inputSchema": {
"type": "object",
"properties": {
"image": {
"type": "object",
"required": [
"download_url",
"file_id"
],
"properties": {
"file_id": {
"type": "string"
},
"file_name": {
"type": "string"
},
"mime_type": {
"type": "string"
},
"download_url": {
"type": "string",
"description": "A temporary https address of the file."
}
},
"description": "A picture the person attached in the chat.",
"additionalProperties": true
},
"image_base64": {
"type": "string",
"description": "The image's bytes, base64 (a data: URI is taken too)."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"url",
"type",
"bytes",
"width",
"height"
],
"properties": {
"url": {
"type": "string",
"description": "The image's link, for <img src>."
},
"type": {
"type": "string"
},
"bytes": {
"type": "integer"
},
"width": {
"type": "integer",
"description": "Pixels (0: not read from this format)."
},
"height": {
"type": "integer"
}
}
},
"annotations": {
"title": "Keep an image for a document",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Gives a link where the person uploads pictures from their device for you — their logo, photos, a signature scan — when you cannot take the file from the chat yourself (you see an attached picture but have no file of it, or they have not sent it yet). Give them the link and say what to upload. When they say they are done, call ask_for_images again with upload_id: you get each image's link (with its size and file name) to put in the document — render_pdf, update_document. The link also accepts the file’s bytes by POST. The link works for 24 hours and takes up to 50 images — photos straight from a phone or a camera too (HEIC, up to 40 MB each; brought to print size, 4096 px on the long side).
| Parameter | Type | Description |
|---|---|---|
| note | string | What to upload, shown to the person on the page, e.g. "Your company logo (PNG with a transparent background is best)". Only for a new link. |
| upload_id | string | The upload_id of a link you gave: what the person has uploaded to it so far. |
{
"name": "ask_for_images",
"title": "Ask the person for their images",
"description": "Gives a link where the person uploads pictures from their device for you — their logo, photos, a signature scan — when you cannot take the file from the chat yourself (you see an attached picture but have no file of it, or they have not sent it yet). Give them the link and say what to upload. When they say they are done, call ask_for_images again with upload_id: you get each image's link (with its size and file name) to put in the document — render_pdf, update_document. The link also accepts the file’s bytes by POST. The link works for 24 hours and takes up to 50 images — photos straight from a phone or a camera too (HEIC, up to 40 MB each; brought to print size, 4096 px on the long side).",
"inputSchema": {
"type": "object",
"properties": {
"note": {
"type": "string",
"description": "What to upload, shown to the person on the page, e.g. \"Your company logo (PNG with a transparent background is best)\". Only for a new link."
},
"upload_id": {
"type": "string",
"description": "The upload_id of a link you gave: what the person has uploaded to it so far."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"uploadUrl",
"uploadId",
"expiresAt",
"images",
"notes"
],
"properties": {
"notes": {
"type": "array",
"items": {
"type": "string"
}
},
"images": {
"type": "array",
"items": {
"type": "object",
"required": [
"url",
"type",
"bytes",
"width",
"height",
"name"
],
"properties": {
"url": {
"type": "string",
"description": "The image's link, for <img src>."
},
"name": {
"type": "string",
"description": "The file name on the person's device."
},
"type": {
"type": "string"
},
"bytes": {
"type": "integer"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
}
}
},
"uploadId": {
"type": "string"
},
"expiresAt": {
"type": "string"
},
"uploadUrl": {
"type": "string",
"description": "The link for the person."
}
}
},
"annotations": {
"title": "Ask the person for their images",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Returns a link (valid 24 hours) that opens an existing PDF in the ReflowPDF editor's import, which rebuilds it as an editable document. A PDF these tools printed, or one exported from the ReflowPDF editor with «Keep the PDF editable», opens from its own source at once; any other is rebuilt by AI, which needs a free account and uses its AI pages (the editor shows the cost first). A document you made with these tools needs no import: give the person its edit link. Give the PDF the person attached in the chat (pdf, as your client passes attached files), a public https URL of it, or its bytes in base64 (small files). A PDF you cannot pass on: the person opens the editor (https://app.reflowpdf.com) and imports it there.
| Parameter | Type | Description |
|---|---|---|
| object | A PDF the person attached in the chat, as your client passes attached files to tools. | |
| url | string | A public https address of the PDF. |
| name | string | The document's name. Default: the file's. |
| pdf_base64 | string | The PDF's bytes, base64 (up to 20 MB). |
{
"name": "import_pdf",
"title": "Import a PDF into the editor",
"description": "Returns a link (valid 24 hours) that opens an existing PDF in the ReflowPDF editor's import, which rebuilds it as an editable document. A PDF these tools printed, or one exported from the ReflowPDF editor with «Keep the PDF editable», opens from its own source at once; any other is rebuilt by AI, which needs a free account and uses its AI pages (the editor shows the cost first). A document you made with these tools needs no import: give the person its edit link. Give the PDF the person attached in the chat (pdf, as your client passes attached files), a public https URL of it, or its bytes in base64 (small files). A PDF you cannot pass on: the person opens the editor (https://app.reflowpdf.com) and imports it there.",
"inputSchema": {
"type": "object",
"properties": {
"pdf": {
"type": "object",
"required": [
"download_url",
"file_id"
],
"properties": {
"file_id": {
"type": "string"
},
"file_name": {
"type": "string"
},
"mime_type": {
"type": "string"
},
"download_url": {
"type": "string",
"description": "A temporary https address of the file."
}
},
"description": "A PDF the person attached in the chat, as your client passes attached files to tools.",
"additionalProperties": true
},
"url": {
"type": "string",
"description": "A public https address of the PDF."
},
"name": {
"type": "string",
"description": "The document's name. Default: the file's."
},
"pdf_base64": {
"type": "string",
"description": "The PDF's bytes, base64 (up to 20 MB)."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"url",
"expiresAt",
"notes"
],
"properties": {
"url": {
"type": "string",
"description": "The link; it works until expiresAt."
},
"notes": {
"type": "array",
"items": {
"type": "string"
},
"description": "What to tell the person about this link."
},
"revision": {
"type": "integer"
},
"expiresAt": {
"type": "string",
"description": "When the link stops working (ISO 8601)."
},
"documentId": {
"type": "string"
}
}
},
"annotations": {
"title": "Import a PDF into the editor",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}Signs the person in to their ReflowPDF account (a free one is enough), when they want PDFs without the ReflowPDF mark, their plan's pages, or the documents you make kept in their account. Their client shows a Connect button; once they have signed in, every call of yours is their account's. Without it everything works too, as a guest: every page, with a small mark.
No parameters.
{
"name": "connect_account",
"title": "Connect the person's ReflowPDF account",
"description": "Signs the person in to their ReflowPDF account (a free one is enough), when they want PDFs without the ReflowPDF mark, their plan's pages, or the documents you make kept in their account. Their client shows a Connect button; once they have signed in, every call of yours is their account's. Without it everything works too, as a guest: every page, with a small mark.",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"connected",
"notes"
],
"properties": {
"notes": {
"type": "array",
"items": {
"type": "string"
}
},
"connected": {
"type": "boolean"
}
}
},
"annotations": {
"title": "Connect the person's ReflowPDF account",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}The engine's guide: "overview" (the tools), "html" (paper, headers/footers, page numbers, tables of contents, footnotes, fonts, images, accessibility), "pages" (page kinds, breaks and keeping together, covers, numbering, bleed and crop marks), "design" (columns, drop caps, page decorations and watermarks, spacing, images and text wrap, typography), "charts" (the chart block), "codes" (QR codes and barcodes), "forms" (fillable fields), "templates" (the template language).
| Parameter | Type | Description |
|---|---|---|
| topic | string | Default: html. |
{
"name": "read_guide",
"title": "How to write documents for ReflowPDF",
"description": "The engine's guide: \"overview\" (the tools), \"html\" (paper, headers/footers, page numbers, tables of contents, footnotes, fonts, images, accessibility), \"pages\" (page kinds, breaks and keeping together, covers, numbering, bleed and crop marks), \"design\" (columns, drop caps, page decorations and watermarks, spacing, images and text wrap, typography), \"charts\" (the chart block), \"codes\" (QR codes and barcodes), \"forms\" (fillable fields), \"templates\" (the template language).",
"inputSchema": {
"type": "object",
"properties": {
"topic": {
"enum": [
"overview",
"html",
"pages",
"design",
"charts",
"codes",
"forms",
"templates"
],
"type": "string",
"description": "Default: html."
}
},
"additionalProperties": false
},
"annotations": {
"title": "How to write documents for ReflowPDF",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}ReflowPDF prints HTML and CSS as paged PDF documents (page numbers, headers and footers, tables of contents, footnotes, multi-column text, drop caps, page decorations and watermarks, full-bleed covers with crop marks, charts, QR codes and barcodes, fillable forms; tagged PDF/UA). JavaScript does not run. Before writing your first document, call read_guide (topic "html"); for a common document (invoice, contract, report, CV, certificate …) try list_templates and render_template first. Answers carry a PDF link (24 hours) and the document's edit link; pass the links on unchanged. Where the ReflowPDF card is shown (the tool result says so), the person sees the pages and the Download and Edit buttons in it: reply in one or two sentences and do not add images, image search results or another card for the document; give the links as the tool result says. For a later change the person asks for, call get_document with the document_id (they may have edited it), then update_document.
Names, descriptions and schemas were written by the server and are shown as data.