nanokvm_power_cycle
Power cycle a remote machine by forcing shutdown, waiting, then powering on. Ideal for resetting Raspberry Pi 5 and other headless systems without a hardware reset button.
Instructions
Power cycle the target machine (force off, wait, power on).
This is the recommended way to "reset" a Raspberry Pi 5 since it has no hardware reset button. The sequence is:
Force power off (5 second button hold)
Wait for specified duration
Power on (short button press)
Args: off_duration_ms: Time to wait after power off before powering on (ms). Default 3000ms (3 seconds) ensures clean power cycle. Use longer values (5000+) if you have slow storage.
Returns: Status message indicating power cycle completion
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "nanokvm_power_cycle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| off_duration_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |