update_template
Update an existing MoEngage email template with validation. Requires external_template_id from search_templates. Returns success and preview.
Instructions
Validate, build, and update an existing email template in MoEngage.
Runs TemplateValidator before updating (unless force=True). Returns success status, external_template_id, and structured preview on success. HTML is never exposed to agent context.
Requires external_template_id from MoEngage (obtain via search_templates). Use force=True to bypass validation. Use debug=True to save HTML to temp file for inspection.
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": {
"title": "<title>",
"components": "<components>",
"external_template_id": "<external_template_id>",
"template_name": "<template_name>",
"template_version": "<template_version>",
"subject": "<subject>",
"sender_name": "<sender_name>",
"updated_by": "<updated_by>"
},
"name": "update_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| components | Yes | ||
| external_template_id | Yes | ||
| template_name | Yes | ||
| template_version | Yes | ||
| subject | Yes | ||
| sender_name | Yes | ||
| updated_by | Yes | ||
| preview_text | No | ||
| force | No | ||
| debug | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||