PolyDoc

v0.1.10
tech.polydoc/polydoc-mcp Checked 15 hours ago Published 28 days ago

HTML/URL to PDF, screenshots, e-invoices.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

polydoc_html_to_pdf PolyDoc: HTML/URL to PDF

Convert a web page, inline HTML, or a saved PolyDoc template to a PDF. Provide exactly one source: url, html, or templateId (with optional templateData). By default the PDF is written to the configured output directory and the file path is returned. Note: HTML that loads scripts from a CDN can hang the renderer; prefer self-contained HTML.

ParameterTypeDescription
advancedobjectRaw fields deep-merged into the request body for any API option not exposed here (e.g. pdf.watermark, render, request).
deliverystringdownload writes the file locally; cloudStorage uploads to a presigned URL; webhook posts the file to a URL.
filenamestringOutput filename. Written under the configured output directory (basename only).
htmlstringInline HTML to render. Provide exactly one of url, html, or templateId.
pdfOptionsobjectPage layout and PDF conformance options.
presignedUrlstringPresigned PUT URL, required when delivery is cloudStorage.
returnBase64booleanAlso return the file as base64 in structured output (heavy; for clients without a filesystem).
sandboxbooleanOverride the server default for this call. Sandbox output is watermarked and rate-limited (about 5 requests/sec).
tagstringLabel for logging and analytics (max 30 chars).
templateDataobjectVariables for the Liquid template (used with templateId).
templateIdstringID of a saved PolyDoc template. Provide exactly one of url, html, or templateId.
timeoutintegerConversion timeout in milliseconds.
urlstringPublic URL to render. Provide exactly one of url, html, or templateId.
webhookobjectWebhook config, required when delivery is webhook. Shape: { url, async?, method?, headers?, retries? }.

polydoc_screenshot PolyDoc: Capture Screenshot

Capture a screenshot of a web page, inline HTML, or a saved PolyDoc template. Provide exactly one source: url, html, or templateId. Returns PNG/JPEG/WebP written to the configured output directory, plus an inline image preview when small enough to display.

ParameterTypeDescription
advancedobjectRaw fields deep-merged into the request body for any API option not exposed here (e.g. pdf.watermark, render, request).
deliverystringdownload writes the file locally; cloudStorage uploads to a presigned URL; webhook posts the file to a URL.
filenamestringOutput filename. Written under the configured output directory (basename only).
htmlstringInline HTML to render. Provide exactly one of url, html, or templateId.
presignedUrlstringPresigned PUT URL, required when delivery is cloudStorage.
returnBase64booleanAlso return the file as base64 in structured output (heavy; for clients without a filesystem).
sandboxbooleanOverride the server default for this call. Sandbox output is watermarked and rate-limited (about 5 requests/sec).
screenshotOptionsobjectScreenshot capture options.
tagstringLabel for logging and analytics (max 30 chars).
templateDataobjectVariables for the Liquid template (used with templateId).
templateIdstringID of a saved PolyDoc template. Provide exactly one of url, html, or templateId.
timeoutintegerConversion timeout in milliseconds.
urlstringPublic URL to render. Provide exactly one of url, html, or templateId.
webhookobjectWebhook config, required when delivery is webhook. Shape: { url, async?, method?, headers?, retries? }.

polydoc_generate_einvoice PolyDoc: Generate E-Invoice

Generate an EU electronic invoice as a hybrid PDF/A-3 (ZUGFeRD or Factur-X): a human-readable PDF with embedded structured invoice XML. Provide the visible document via one source (html, templateId, or url) and the structured data via the invoice object. For EN 16931 (profile en16931), include a dueDate or paymentTerms (rule BR-CO-25), a seller taxId when a line uses VAT category S, a taxSummary, and totals where totalNetAmount + totalTaxAmount = totalGrossAmount.

polydoc_test_credentials PolyDoc: Test Credentials

Verify the configured PolyDoc API key by running a minimal sandbox render. Reports whether the key is accepted; never draws production quota.