Revert Theme to Version
revert_theme_to_versionRestore a theme to an earlier version in LightCMS by creating a new version with previous data, useful for undoing unwanted changes.
Instructions
Revert theme to a previous version. Creates a new version with the old data.
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": {
"version": "<version>"
},
"name": "revert_theme_to_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | Version number to revert to,required | |
| version_comment | No | Optional comment for the revert (e.g., 'Reverted to v3') |