search_devices
Find UniFi devices by site, model, state, or name pattern; use wildcard matching to filter and locate specific devices.
Instructions
Search for devices with optional filters.
Use wildcards in name_pattern: * matches any characters, . matches single character. Example: "AP-*" matches all devices starting with "AP-"
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": {
"site_id": "<site_id>"
},
"name": "search_devices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Device model to filter by | |
| state | No | Device state to filter by (ONLINE, OFFLINE, etc) | |
| site_id | Yes | Site UUID | |
| name_pattern | No | Device name pattern (supports wildcards) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| devices | Yes | ||
| totalCount | Yes |