vm_power_off
Power off a VMware VM with graceful guest shutdown or forced hard power-off. Preview blast radius first, then confirm to apply the action.
Instructions
[WRITE] Power off a VM — graceful guest shutdown by default, hard power-off with force=True.
Without confirm=True this only previews: it returns blast_radius (VM name and instance UUID, host, power state, VMware Tools status, and whether this is a guest shutdown or a hard power-off) 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.
Graceful mode calls VMware Tools guest shutdown and waits up to 120s; if it does not finish, action is "still_running". Refused: a graceful shutdown when Tools is not running or the VM is suspended (preview force=True instead), and a VM whose identity or power state cannot be read. An already-off VM returns action "noop". Use vm_power_on to start a VM; vm_delete requires it off first.
Returns: Dict with action (preview, noop, powered_off, still_running), blast_radius, and the executor's message under result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | False (default) = graceful guest shutdown via VMware Tools; True = immediate hard power-off (risks guest filesystem damage). | |
| target | No | vCenter/ESXi target from config.yaml; omit for the default target. | |
| confirm | No | False (default) returns the blast radius and changes nothing. True applies it. | |
| vm_name | Yes | Exact VM name as shown in vCenter inventory (case-sensitive). |