hyperv_vm_stop
Stops a Hyper-V virtual machine and waits until it is Off. Use shutdown mode to close the guest cleanly or turnoff mode to cut power immediately, which discards unsaved guest data.
Instructions
Stop a Hyper-V virtual machine and wait until it is Off. mode=shutdown (default) closes down cleanly; mode=turnoff cuts power and loses unsaved guest data.
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": {
"vm": "<vm>"
},
"name": "hyperv_vm_stop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | Name of the Hyper-V virtual machine. | |
| mode | No | stop only. shutdown (default) asks the guest to close down cleanly; turnoff cuts power immediately and loses unsaved work inside the guest. | |
| timeoutSec | No | How long to wait for the target state, in seconds. Default 120. |