Update Template
update_templateModify existing templates in LightCMS to change HTML layouts, fields, or metadata, which automatically regenerates all content using that template.
Instructions
Update an existing template. Changing the HTML layout will regenerate all content using this template.
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": {
"id": "<id>"
},
"name": "update_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Template ID (MongoDB ObjectID),required | |
| name | No | Template name | |
| slug | No | Template slug | |
| fields | No | Template fields definition | |
| category | No | Template category | |
| description | No | Template description | |
| html_layout | No | HTML layout (changing this regenerates all content using this template) |