Power-Cycle a PoE Port
unifi_power_cycle_portRemotely power-cycle a single PoE port on a UniFi switch to reboot a hung camera, access point, or phone. Cuts and restores port power, so confirm the connected device can lose power.
Instructions
Power-cycle a single PoE port on a UniFi switch — briefly cuts and restores power to whatever is plugged into that port (camera, AP, phone). Useful to remotely reboot a hung PoE device. CAUTION: the connected device loses power; confirm with the user first.
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": {
"deviceId": "<deviceId>",
"portIdx": "<portIdx>"
},
"name": "unifi_power_cycle_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | No | Site ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically. | |
| portIdx | Yes | Port number as shown in unifi_get_device's port table | |
| deviceId | Yes | Switch device ID (UUID from unifi_list_devices) |