Preview Flow Email content
preview_flow_email_contentRenders a complete candidate native inviomail contentJson for a Flow Email without saving. First call get_flow_email_content and use its exact revision as expectedRevision. Validate first and pass normalizedContent when valid. New or changed image sources must be tenant-owned URLs returned by inviomail media tools. Button blocks support bold (default true) and optional fontSize (integer 10–30 px) for desktop; omit fontSize to inherit tenant body typography. Optional mobileFontSize (integer 16–24 px) controls mobile text separately, with tenant bodyMobilePx as the readability floor; omit it to retain the mobile standard. Long button labels wrap automatically. Own contact fields are supported only in heading.text and text.html, including two-column children: {{custom.key}} or {{custom.key | default: "replacement text"}}. Read list_contact_fields first and use its permanent keys; offer active fields for new insertion. Existing archived references still resolve. Missing/blank values use the fallback or empty text. Escape fallback JSON and HTML correctly; do not split a token with inline markup. Tenant validation reports invalid syntax, unsupported locations and unknown keys. Custom field placeholders are not supported in subjects, preheaders, buttons, URLs, footers, signatures or DOI emails.
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": {
"flowEmailId": "<flowEmailId>",
"expectedRevision": "<expectedRevision>",
"contentJson": "<contentJson>"
},
"name": "preview_flow_email_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contentJson | Yes | Complete candidate Flow Email contentJson document. For type button (also in two-column children), bold defaults to true and optional fontSize is an integer 10–30 px for desktop; omit fontSize for tenant body typography. Optional mobileFontSize (integer 16–24 px) controls mobile text separately, with tenant bodyMobilePx as the readability floor; omit it to retain the mobile standard. Long button labels wrap automatically. | |
| flowEmailId | Yes | Flow Email ID | |
| personalization | No | Optional personalization: {mode:"contact",contactId:"tenant-contact-uuid"} uses that contact as the data source; {mode:"empty"} renders fallbacks without custom field values. Omit for literal preview tokens or, on test sends, values of an existing contact matching toEmail. The test email is always delivered to toEmail; the selected contact is not subscribed, tagged, or unsubscribed by selecting it. Find contact IDs with search_contacts or get_contact_by_email. | |
| expectedRevision | Yes | Exact revision returned by get_flow_email_content |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| impact | Yes | ||
| preview | Yes | ||
| flowEmail | Yes | ||
| requestId | Yes | ||
| designContextUpdatedAt | Yes |