unifi_power_cycle_port
Power-cycle PoE on a UniFi switch port to reset a connected device. Previews the change unless confirm is true, protecting gateway and protected-network ports.
Instructions
Power-cycle PoE on one switch port (official POWER_CYCLE). Needs confirm: true when the port is on the gateway, or feeds a protected-network client (pi-cluster by default) directly or through another switch or AP; without it the tool previews.
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": {
"device": "<device>",
"port": "<port>"
},
"name": "unifi_power_cycle_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | Port number (portIdx) on the device | |
| site | No | Site name, id or reference; optional while the console has a single site | |
| device | Yes | Device name, MAC, IP or id | |
| confirm | No | Must be true to carry out a guarded change; without it the tool only previews it |