Revert to Version
revert_to_versionRestore content to a previous version by creating a new version with old data, enabling content recovery and version control in LightCMS.
Instructions
Revert content 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": {
"content_id": "<content_id>",
"version": "<version>"
},
"name": "revert_to_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | Version number to revert to,required | |
| content_id | Yes | Content ID (MongoDB ObjectID),required | |
| version_comment | No | Optional comment for the revert (e.g., 'Reverted to v3') |