Preview Unsaved Campaign Content
listmonk_preview_campaign_draftRenders an HTML or text preview for an unsaved campaign body using the campaign’s saved subject and lists, without saving changes. Use it to check formatting before updating a campaign.
Instructions
Renders an HTML/text preview of an UNSAVED body/content_type combination for campaign id, using the campaign's other saved fields (subject, lists), without persisting anything. Use before listmonk_update_campaign 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": {
"id": "<id>",
"body": "<body>"
},
"name": "listmonk_preview_campaign_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Campaign to render the preview for (its lists/subject/etc are used, body is overridden). | |
| body | Yes | Unsaved HTML/markdown body to render a preview of. | |
| template_id | No | ||
| content_type | No |