update_template
Modify an existing template in Templated MCP Server to update its name, description, size, pages, or layers without rebuilding it.
Instructions
Update an existing template. IMPORTANT: Each layer must have a 'layer' field (unique identifier), not 'name'. Valid types: 'text', 'image', 'shape', 'rating'. For multi-page templates use 'pages': a page name that does not exist yet is ADDED to the template, an existing one has its layers merged (or replaced with replaceLayers). To change page sizes on a multi-size template set width/height per page inside 'pages'; top-level width/height are rejected there because they would resize every page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New template name | |
| pages | No | Pages for multi-page or multi-size templates (e.g. Instagram square, story and X landscape in ONE template, each with its own width/height). Use this INSTEAD of top-level 'layers'. Each page: 'page' (unique name), optional 'width'/'height' (fall back to the template size), and 'layers' as an OBJECT keyed by layer name (NOT an array). Same shape as get_template_pages returns. | |
| width | No | New width in pixels. Applies to every page; rejected on multi-size templates (use per-page width inside 'pages') | |
| height | No | New height in pixels. Applies to every page; rejected on multi-size templates (use per-page height inside 'pages') | |
| layers | No | Layer definitions. Each must have 'layer' (unique name) and 'type' (text/image/shape/rating). | |
| duration | No | Default video duration in milliseconds for MP4 renders (e.g., 5000 for 5 seconds) | |
| background | No | Template background color | |
| description | No | New template description | |
| template_id | Yes | The template ID to update | |
| replaceLayers | No | If true, replaces all layers. If false, merges with existing |