create_template_from_file
Creates a Listmonk template by reading its HTML body from a UTF-8 file in the configured sandbox directory, preserving large exports byte for byte.
Instructions
Create a template whose HTML body is read from a UTF-8 file inside LISTMONK_MCP_FILES_DIR, so large bodies such as MJML exports are stored byte for byte. Otherwise identical to create_template. Fails if LISTMONK_MCP_FILES_DIR is not set or the path is outside it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Template name | |
| type | No | Template type: 'campaign' or 'tx' (transactional) | campaign |
| 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 | Whether this is default |