Create Complete HTML Template
create_html_templateCreate an HTML email template with subject, version, test data, and optional plain text in one step. Supports Handlebars variables for personalized email campaigns via SendGrid.
Instructions
Create a new template with HTML content in one step - perfect for AI-generated designs
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_name": "<template_name>",
"version_name": "<version_name>",
"subject": "<subject>",
"html_content": "<html_content>"
},
"name": "create_html_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subject | Yes | Email subject line (supports Handlebars like {{firstName}}) | |
| test_data | No | JSON string with test data for preview (e.g., '{"firstName":"John","company":"Acme"}') | |
| html_content | Yes | Complete HTML email template (supports Handlebars) | |
| version_name | Yes | Name for the initial version | |
| plain_content | No | Plain text version (will auto-generate if not provided) | |
| template_name | Yes | Name of the template |