snapshot_revert
Revert a VM to a chosen snapshot to restore its previous state; this replaces the current VM state irreversibly, so create a new snapshot first if rollback may be needed.
Instructions
[WRITE][risk=high] Revert a VM to a snapshot. IRREVERSIBLE.
The VM's CURRENT state is replaced by the snapshot — take a fresh snapshot
first (snapshot_create) if you may need to come back. Captures the
snapshot's state for the audit record; declares no undo.
Args:
snapshot_id: Snapshot uuid to revert to (see snapshot_list).
dry_run: If True, preview without reverting.
target: Xen Orchestra target name from config; omit for the default.
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>"
},
"name": "snapshot_revert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| dry_run | No | ||
| snapshot_id | Yes |