Check a document while you work on it
check_documentPrints 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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | The whole HTML document to check, as render_pdf takes it. | |
| tags | No | The tag tree in the answer. Default: true. | |
| pdf_a | No | 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 | No | 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 | No | Or a document by its link (or its edit link), as it is now: its source, data and standards. | |
| preview_pages | No | 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 | No | 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | The tag tree a screen reader gets: text (each element and its text, indented), lines, cut (when longer than shown). | |
| notes | Yes | Facts about this PDF: how long its link works, its mark, what was not fetched or filled. | |
| pages | Yes | ||
| outline | No | 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 | Yes | Which pages came with this answer as pictures (PNG), or why none did. | |
| standards | No | 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 | No | 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. | |
| missingFonts | No | Font families the document named that no face answered: their text took the next family of its list. | |
| skippedResources | No | Images, fonts or style sheets the server could not fetch. |