update_snippet
Modify existing content snippets by updating their name and HTML template in LightCMS, enabling quick content revisions.
Instructions
Update an existing snippet's name and/or HTML 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": "<name>",
"html": "<html>"
},
"name": "update_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Snippet ID (MongoDB ObjectID),required | |
| html | Yes | Go template HTML,required | |
| name | Yes | Snippet name,required |