Preview Unsaved Template
listmonk_preview_template_draftRender an HTML preview of an unsaved Listmonk template body and type without saving or modifying data, so you can check formatting before creating a template.
Instructions
Renders an HTML preview of an UNSAVED template body/type combination, without creating or modifying anything. Use before listmonk_create_template to check formatting.
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_type": "<template_type>",
"body": "<body>"
},
"name": "listmonk_preview_template_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Unsaved HTML body to render a preview of. | |
| template_type | Yes | Template type, e.g. 'campaign', 'campaign_visual', or 'tx'. |