hyperv_vm_restart
Restarts a Hyper-V virtual machine by stopping it, waiting until it is Off, then starting it and waiting until it is Running.
Instructions
Restart a Hyper-V virtual machine: stop, wait for Off, start, wait for Running.
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_restart"
}
}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. |