Create Template Draft
create_template_draftCreate a draft of a new template. The draft can be edited, previewed, and saved as a template. 'template_format' documents the template format, with examples.
Every sender identity, recipient and recipient group the template references must already exist; a reference to one that does not fails validation. Sender identities, recipients and groups are listed by 'list_sender_identities', 'list_recipients' and 'list_groups', and created by 'create_sender_identity', 'create_recipients' and 'create_group'.
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>",
"Template": "<Template>"
},
"name": "create_template_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Name | Yes | New template name. Must be unique. | |
| Template | Yes | Email template in GoodSender format. Documentation: 'template_format' tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Result | Yes | Result of the operation. | |
| TemplateToken | Yes | Template token accepted by 'render_template_preview', 'edit_template', 'get_template_content' and 'save_template'. | |
| TemplateDataSchema | Yes | Data schema inferred from the template. |