Publish the draft as a version
publish_templatePublish a template's draft so send_email uses it as the current version. Publishing creates a new immutable version, leaving already sent emails unchanged.
Instructions
Purpose: make a template's draft the version send_email uses. NOT for: editing. Published versions are immutable; publishing again makes the next one, so nothing already sent can change under you. Returns: the template id and the new version number.
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": "publish_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_id | Yes | The template id from list_templates. | |
| idempotency_key | No | Your own key for this action. Retrying with the same key returns the first result instead of doing it twice — send one whenever a retry could double the effect. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present instead of the fields above when the call was refused: code, message, fix, docs_url, retryable and, when waiting helps, retry_after_seconds. | |
| template_id | No | Identifier. | |
| version_number | No |