undo_changes
Undo a whole batch (give batch = the batch id from list_changes) or selected changes (change_ids). Safe by default: a field is put back only if it still has the value that change set; anything changed afterwards is left alone and listed as skipped (reason changed_since / gone / already_undone / not_allowed). Comments the batch added are deleted (for good). The undo is itself recorded, so it can be undone again. Returns { batch, reverted: [ids], skipped: [{ id, reason }] }.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "undo_changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch | No | batch id from list_changes: undo the whole batch | |
| change_ids | No | ids of single changes from list_changes, e.g. [101, 102] |