Undo a change set
rollback_change_setUndoes one earlier change set by its id, as a change set of its own, and returns the new change set id and the site's state_version. The ids come from the answers of apply_change_set and set_seo. Send base_version from your latest read of the site, or the state_version of the last answer. If a later change touched the same content, nothing is written and the answer is rollback_conflict with the later change set's id: do not retry, tell your user, and offer to make the edit by hand with apply_change_set. It also refuses a change set that was undone already or cannot be undone, and says why. Undoing a change that created a page deletes that page, so it needs both sites:write and sites:delete. The first call writes nothing and returns the change set that would be undone; show it to your user and call again with the same arguments and confirm: true only after they agree. To undo your own mistake in the same request, send apply_change_set with the right values instead.
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": {
"change_set_id": "<change_set_id>",
"siteId": "<siteId>",
"base_version": "<base_version>"
},
"name": "rollback_change_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | Site id from list_sites or create_site. | |
| confirm | No | Set true only after your user approved the list from your previous call to this tool. Never set it on the first call. | |
| base_version | Yes | The state_version from your latest get_state or get_schema result for this site. A stale_state_version error means the site changed since: read again. | |
| change_set_id | Yes | The id that apply_change_set, set_seo, or the change card gave for the change to undo. |