vm_rollback_plan
Preview or execute rollback of failed VMware plans in reverse order, listing blast radius and skipping irreversible steps.
Instructions
[WRITE] Rollback executed steps of a failed plan in reverse order.
Without confirm=True this only previews: it returns blast_radius listing the rollback steps that would run (in order, with the VMs a rollback deletes) and those skipped as irreversible — and runs nothing. Show that to the user and get their explicit decision. Do not set confirm=True on your own because the user asked earlier: they have not seen the preview yet.
Only call this after vm_apply_plan returns status='failed'; check vm_list_plans first for the plan_id. Irreversible steps (delete_vm, revert_snapshot, etc.) are skipped with a warning. Each destructive rollback step (power off, delete snapshot, cluster delete, host removal) is measured as its own tool measures it, in the preview and again just before it runs; a refused check stops the rollback there and the plan stays 'failed'. Refused on a target other than the one the plan was created against.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | The vCenter/ESXi target the plan was created against. | |
| confirm | No | False (default) returns the blast radius and changes nothing. True applies it. | |
| plan_id | Yes | The plan ID of the failed plan. |