export_email
Export generated emails as HTML, MJML, or both. Select any version from refinement history to retrieve the exact template you need.
Instructions
Export a generated email as HTML, MJML, or both. Supports exporting specific versions from the refinement history.
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": {
"email_id": "<email_id>"
},
"name": "export_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Export format. Defaults to "both". | |
| version | No | Export a specific version. Defaults to the latest. | |
| email_id | Yes | ID of the email to export |