vm_revert_snapshot
Preview then revert a VM to a named snapshot, discarding all changes made after that snapshot. Requires explicit confirmation to apply.
Instructions
[WRITE] Revert a VM to a named snapshot (loses changes since snapshot).
Without confirm=True this only previews: it returns blast_radius (VM and instance UUID, the snapshot's name, id and creation time, total snapshot count, current power state and the power state after the revert) and changes nothing. Show it to the user and get their decision. Do not set confirm=True on your own because the user asked earlier: they have not seen the preview yet.
Irreversible — everything written since the snapshot is lost. Refused: a snapshot name that is not found, a name that matches more than one snapshot on the VM (vSphere allows duplicates; rename one first), and a VM whose snapshot tree, identity or power state cannot be read. Run vm_list_snapshots first for exact names. To reclaim space without changing state use vm_delete_snapshot.
Returns: Dict with action (preview, reverted), blast_radius, and result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | vCenter/ESXi target name from config. | |
| confirm | No | False (default) returns the blast radius and changes nothing. True applies it. | |
| vm_name | Yes | VM to revert. | |
| snapshot_name | Yes | Snapshot to revert to. |