Create template
create_templateCreate a draft email template (html or blocks format).
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": {
"name": "<name>",
"subject": "<subject>"
},
"name": "create_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | HTML body | |
| name | Yes | Template name | |
| text | No | Plain-text body | |
| alias | No | Optional short alias to reference the template by instead of its id | |
| folder | No | Optional folder to file the template in; created if it does not exist | |
| format | No | Template format (html or blocks) | |
| sender | No | Saved sender handle or id the template goes out as when a send sets neither from nor sender | |
| subject | Yes | Subject line, may contain {{variables}} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | Yes | The template |