Apply template
apply_templatePopulate an email template with variable values, then preview, save as a draft, or send the composed message using a connected account.
Instructions
Apply an email template with variable substitution. Use action "preview" to see the result, "draft" to save as draft, or "send" to send immediately.
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": {
"account": "<account>",
"template": "<template>",
"variables": "<variables>"
},
"name": "apply_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Recipient addresses (required for send, optional for draft) | |
| action | No | What to do with the composed email | preview |
| account | Yes | Account name from list_accounts | |
| template | Yes | Template name from list_templates | |
| variables | Yes | Variable values as key-value pairs, e.g. { topic: 'Q1 Review' } |