revert_vm_to_snapshot
Revert a halted VM to a previous snapshot, discarding all changes made since that snapshot was taken. Use it to restore a VM to a known state.
Instructions
Revert a VM to a previous snapshot. WARNING: This will discard all changes made since the snapshot was taken. The VM must be halted first.
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": {
"vm_id": "<vm_id>",
"snapshot_id": "<snapshot_id>"
},
"name": "revert_vm_to_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm_id | Yes | VM UUID or Xen Orchestra object ID | |
| snapshot_id | Yes | Snapshot VDI UUID or Xen Orchestra object ID to revert to. Get this from list_snapshots. |