draft_email
Render an email template preview without sending anything: returns the subject, the merged HTML body (size-capped), and a recipient preview. Pass a contactId to substitute that contact's variables. Never sends and never records an email log.
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": {
"eventId": "<eventId>",
"templateId": "<templateId>"
},
"name": "draft_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | No | Organization slug. Only needed when you belong to multiple organizations; must be one returned by list_my_orgs. | |
| eventId | Yes | Event id, as returned by list_events. | |
| contactId | No | Optional contact id to use as the variable-substitution context. | |
| templateId | Yes | The email template id (org or event template). |