render_document_pdf
Turn a template (or an already rendered HTML document) into a PDF via the tenant's hosted browser, and store it. Source: either template_id/key (+ variables) or document_id of an HTML document. Page size and margins come from the template's own CSS — nothing is added here, because two millimetres are enough to push a DIN 5008 address block out of the envelope window. Returns document_id; view it with get_document_link, send it with send_email(attachments) or send_letter(document_id). Needs a browser service under Integrations (provider 'browser').
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_document_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Template key (alternative to template_id) | |
| title | No | Title of the stored PDF document | |
| variables | No | Values for the template's {{placeholders}}; arrays of objects for {{#each list}} blocks. | |
| document_id | No | An HTML document to convert, instead of a template. | |
| template_id | No | ID of the template |