render_template_preview
Generate a preview PDF from a template using its built-in fields. Returns a signed download URL with caching for instant repeated access.
Instructions
Generate a preview PDF for a DocRenders template using its built-in preview_fields data. Returns a signed download URL. Previews are cached — repeated calls for the same template return instantly. Does not count against your render quota.
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": "<template>"
},
"name": "render_template_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | Yes | Template name (e.g. "invoice", "resume") or user template ID (tpl_…) | |
| data | No | Optional data overrides. Omit to use the template's built-in preview_fields. |