Create Template Version
create_template_versionCreate a new version of an email template by specifying HTML content, subject, and name. Set the version as active or inactive, with options for plain text and test data.
Instructions
Create a new version of a template with HTML content and settings
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>",
"html_content": "<html_content>"
},
"name": "create_template_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for this version | |
| active | No | Set as active version (1 = active, 0 = inactive) | |
| subject | Yes | Email subject line (supports Handlebars) | |
| test_data | No | JSON string of test data for Handlebars variables | |
| template_id | Yes | ID of the template to add version to | |
| html_content | Yes | HTML content of the email template (supports Handlebars) | |
| plain_content | No | Plain text version (optional) | |
| generate_plain_content | No | Auto-generate plain text from HTML |