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.
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 |