render_pdf
Converts HTML with Tailwind CSS, public URLs, or hosted templates with JSON data into vector PDFs, returning a hosted CDN link and base64 data URI.
Instructions
Converts HTML with full Tailwind CSS classes, a public URL, or a hosted template (template_id + JSON data, e.g. "invoice-modern") into a pixel-perfect, vector PDF document with Smart Pagination Shield. Returns a hosted CDN link and base64 data URI.
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": "render_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public web URL to render directly to PDF (e.g. https://news.ycombinator.com). Provide exactly one of html, url or template_id. | |
| data | No | JSON data for template_id (e.g. seller, buyer and items for invoice-modern). Validation errors name the offending fields. | |
| html | No | HTML markup to render. Tailwind CSS utility classes are supported automatically. Provide exactly one of html, url or template_id. | |
| format | No | Paper format: "A4" or "Letter" (default: "A4") | A4 |
| delay_ms | No | Optional delay in milliseconds before rendering (max 5000) | |
| password | No | Optional password to encrypt the PDF with AES-256 | |
| wait_for | No | Optional CSS selector to wait for before rendering | |
| landscape | No | Whether to generate PDF in landscape orientation (default: false) | |
| max_reads | No | Optional maximum number of reads/downloads before automatic expiration (Geiger read limit) | |
| expire_mode | No | How the hosted PDF behaves after expiration: "replace_and_stamp" (selective field decay + EXPIRED stamp), "replace_only" (field replacement only), or "lockout" (1-page expired certificate) | |
| footer_html | No | Optional HTML template for page footer (e.g. with pageNumber / totalPages) | |
| header_html | No | Optional HTML template for page header (e.g. with pageNumber / totalPages) | |
| template_id | No | Hosted template id: invoice-modern, receipt-minimal, certificate-classic or report-executive. Requires "data". Provide exactly one of html, url or template_id. | |
| document_ttl | No | Optional Time-Limited Isotope PDF half-life duration (e.g. "24h", "7d", "14d"). Supports <span data-isotope="14d" data-decayed="[EXPIRED]"> in HTML. | |
| expire_message | No | Optional custom expiration notice | |
| print_background | No | Whether to print CSS backgrounds and colors (default: true) |