render_template
Renders Tailwind CSS document templates with optional variable substitution to generate invoices, receipts, contracts, certificates, or reports as PDF/PNG/JPEG without managing raw HTML.
Instructions
Renders a pre-designed Tailwind CSS document template directly with optional variable data substitution. Ideal for generating invoices, receipts, contracts, and certificates without managing raw HTML markup.
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": {
"template_id": "<template_id>"
},
"name": "render_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | No | Optional AES-256 password to encrypt the PDF document | |
| landscape | No | Orientation override (landscape: true or false) | |
| variables | No | Key-value pairs to replace in template HTML. Replaces {{key}} tags or exact text matches. | |
| template_id | Yes | Template identifier to render | |
| output_format | No | Output format: "pdf" for documents (default: pdf) |