Restore a snapshot
rollback_snapshotRestores the whole site to an earlier snapshot, which discards every change made after it. Call list_snapshots first to choose a snapshot id. The first call writes nothing and returns the change sets that would be discarded; show that list to your user and call again with confirm: true only after they agree. Send base_version from your latest read of the site. Only the workspace's owner or an admin can restore. To undo one change instead, use rollback_change_set.
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": {
"snapshot_id": "<snapshot_id>",
"siteId": "<siteId>",
"base_version": "<base_version>"
},
"name": "rollback_snapshot"
}
}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. | |
| snapshot_id | Yes | The id that list_snapshots gave for the snapshot to restore. | |
| 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. |