email.draft
Drafts a personalized customer email with variable interpolation for preview.
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": {
"to": "<to>",
"subject": "<subject>",
"message": "<message>"
},
"name": "email.draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient email address, array of addresses, or audience tag ('all', 'customers', 'leads', 'students') | |
| ctaUrl | No | Optional CTA destination URL | |
| ctaText | No | Optional CTA button label | |
| heading | No | Optional email header title | |
| message | Yes | Email body text | |
| subject | Yes | Email subject line | |
| template | No | Optional template key ('marketing', 'newsletter', 'announcement', 'followup', 'support', 'blank') | |
| primaryColor | No | Optional brand color hex |