Update Template
update-templateModify an existing template's name or content. Supplying new HTML or JSON automatically creates a new active version; HTML and JSON are mutually exclusive.
Instructions
Update an existing template's name and/or content. Providing new html or json content creates a new version automatically. The html and json fields are mutually exclusive.
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": {
"slug": "<slug>"
},
"name": "update-template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | New HTML content. Creates a new active version. Mutually exclusive with json. | |
| json | No | New JSON content for visual editor. Creates a new active version. Mutually exclusive with html. | |
| name | No | New name for the template | |
| slug | Yes | The template slug to update | |
| project_id | No | Project ID to find the template in. If not provided, uses the team's default project. |