Undo changes
revert_revisionsUndoes a batch of changes (batch_id) or chosen revisions, newest first: restores old values, un-deletes, or removes what was created. If something was edited again since, nothing is reverted and the conflicts are listed; resend with force: true to overwrite. The undo is itself undoable. Call it only when the user has just asked to undo these changes.
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": {
"drama_id": "<drama_id>"
},
"name": "revert_revisions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | true reverts even when the item changed again since; false (default) refuses then. | |
| batch_id | No | Undo every change made by one call (its batch id from list_revisions). | |
| drama_id | Yes | The drama id (drm_…), from list_dramas or create_drama. | |
| revision_ids | No | Or undo these individual revisions (ids from list_revisions). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skipped | Yes | ||
| reverted | Yes | ||
| overwritten | Yes |