Execute device action
unifi_net_device_actionTriggers a UniFi network device action such as restart by device ID, with optional dry-run preview or YES confirmation before applying.
Instructions
Generic device action. Uses the executeadopteddeviceaction endpoint. Vendor value: RESTART (lowercase "restart" is mapped).
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>",
"action": "<action>"
},
"name": "unifi_net_device_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | e.g. "RESTART" | |
| confirm | No | "YES" to apply; without it the tool returns a preview. | |
| dry_run | No | true: preview only, nothing is sent. | |
| deviceId | Yes |