unifi_devices
Manage UniFi network devices: list pending/adopted, adopt, remove, retrieve details and statistics, and execute actions like restart or PoE power-cycle.
Instructions
UniFi devices (adoption, details, statistics, restart, PoE port power-cycle). Operations:
list_pending (Read): List Devices Pending Adoption
list (Read): List Adopted Devices
adopt (Create): Adopt Devices
remove (Destructive): Remove (Unadopt) Device — requires confirm: true
get (Read): Get Adopted Device Details
execute_action (Admin): Execute Adopted Device Action — requires confirm: true
execute_port_action (Admin): Execute Port Action — requires confirm: true
get_statistics (Read): Get Latest Adopted Device Statistics List results are pages: { offset, limit (max 200), count, totalCount, data[] }. Filtering: pass filter as property.function(args); combine with and(...), or(...), not(...). Functions: eq, ne, gt, ge, lt, le, like, in, notIn, isNull, isNotNull; SET: contains, containsAny, containsAll, containsExactly, isEmpty. Strings use single quotes ('guest'); like patterns: '.'=one char, '*'=any run, ''=escape. For request-body shapes call unifi_spec with { operation: "unifi_devices." }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Request body for: adopt, execute_action, execute_port_action. Exact schema via unifi_spec. | |
| limit | No | Page size (default 25, max 200). Used by: list_pending, list. | |
| filter | No | Filter expression (see tool description). Used by: list_pending, list. | |
| offset | No | Pagination offset (default 0). Used by: list_pending, list. | |
| siteId | No | siteId (uuid). Used by: list, adopt, remove, get, execute_action, execute_port_action, get_statistics. | |
| confirm | No | Must be true to execute: remove, execute_action, execute_port_action. These change or remove live configuration. | |
| portIdx | No | portIdx (int32). Used by: execute_port_action. | |
| deviceId | No | deviceId (uuid). Used by: remove, get, execute_action, execute_port_action, get_statistics. | |
| consoleId | No | Cloud mode only: the console to target. Discover IDs with unifi_consoles. Ignored in direct (single-console) mode. | |
| operation | Yes | Which operation to perform. |