Edit a template
edit_templateChange a template with the design agent from a plain-language instruction (10–30 AI credits, up to 12 more for each carousel page after the first): restyle, resize, rewrite sample text, apply the brand, add slides, animate it as a video. Saves the result over the workspace template (or as a copy with saveAsCopy; library templates are always copied) and returns it with its parameters. Parameter keys are kept unless the instruction is about them.
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": {
"templateId": "<templateId>",
"instruction": "<instruction>"
},
"name": "edit_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | The page the instruction is about (default 1) | |
| brand | No | true (default): use the workspace's brand library (colours, fonts, logo); false: none; or explicit colors / fonts / logo | |
| saveAsCopy | No | Save the result as a new template and leave this one unchanged (default false) | |
| templateId | Yes | A template id from list_templates (a library template is saved as a copy in the workspace) | |
| instruction | Yes | What to change, e.g. "make the headline bigger and use our brand colours", "turn it into a 5-slide carousel", "animate it as a video" |