power
Change a KVM/BMC-managed host's state to on, off, hard off, or reset; approval-gated destructive actions return verified effect status.
Instructions
Change host power state. DESTRUCTIVE.
Gated by the power effect gate + per-invocation approval (elicitation, or
confirm=true under standing policy); denials come back through the same
path with a typed outcome (#234). The result carries an honest effect
report (#168): verified is true/false when the driver has a trustworthy
power signal (Redfish PowerState, a wired ATX LED), and null — with the
reason and what to do instead — when it doesn't. A power action also
invalidates prior snapshot frame refs (generation bump), so a stale
mouse click can't land on the post-reboot screen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | on/off are graceful (ACPI power button); off-hard forces power off (data loss); reset is a hard reset. Use wake for Wake-on-LAN. | |
| confirm | No | Per-invocation approval when the client cannot prompt a human: set true to approve this exact call under the operator's standing policy. Leave false when the client supports elicitation (a human is asked). Never pre-set it speculatively; a denial returns outcome=not_confirmed. | |
| profile | No | Profile name from ~/.config/kvm-pilot/config.toml selecting which KVM/BMC (and its managed host) this call targets. Omit to use the server's default (KVM_PILOT_PROFILE). |