Render Template Preview
render_template_previewRender a template preview with provided data: the email exactly as the template produces it.
'template_format' documents the template format. The sender identity in the template header must exist; otherwise rendering returns an error.
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": {
"TemplateToken": "<TemplateToken>",
"TemplateData": "<TemplateData>"
},
"name": "render_template_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| TemplateData | Yes | Data to populate template variables. | |
| TemplateToken | Yes | Template token. Create with 'create_template_draft' or 'get_template' tools. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| To | No | Resolved To addresses. | |
| From | No | Resolved From address. | |
| HTML | Yes | Rendered HTML preview body. Consumed by the preview UI. | |
| Result | No | Result message. | |
| Source | Yes | Raw template source. Consumed by the preview UI. | |
| Subject | No | Resolved Subject. | |
| PreviewURL | No | Set only when the host did not advertise MCP Apps UI support: URL to open the preview in a browser. Served locally until ~30 minutes after creation. | |
| Unavailable | No | True when this preview was evicted from the server cache and can no longer be displayed. | |
| OtherHeaders | No | Other resolved headers (Cc, Bcc, Reply-To). |