update_template_from_file
Update an existing Listmonk template by replacing its HTML body with a UTF-8 file from the configured sandboxed directory.
Instructions
Update an existing template, replacing its HTML body with the contents of a UTF-8 file inside LISTMONK_MCP_FILES_DIR. Otherwise identical to update_template. Fails if LISTMONK_MCP_FILES_DIR is not set or the path is outside it.
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>",
"file_path": "<file_path>"
},
"name": "update_template_from_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Template name | |
| subject | No | Subject line (required for 'tx' transactional templates) | |
| file_path | Yes | Path to the template HTML file inside LISTMONK_MCP_FILES_DIR (absolute or relative to it) | |
| is_default | No | Default template flag | |
| template_id | Yes | Template ID |