Update template
update_templateReplace a template's name, subject, preview text and body, all at once: read it with get_template first and send back what should stay. Emails already made from it keep their own copy.
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": {
"template_id": "<template_id>",
"name": "<name>",
"subject": "<subject>",
"preview_text": "<preview_text>",
"html": "<html>",
"markdown": "<markdown>"
},
"name": "update_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | The body as HTML. Null when you send markdown. | |
| name | Yes | ||
| subject | Yes | ||
| markdown | Yes | The body as markdown. Null when you send html. | |
| template_id | Yes | ||
| preview_text | Yes |