unifi_console_switch_port_detail
Retrieve live per-port switch status including link, STP role/state, flaps, errors, PoE, and optional LLDP neighbors. Use it to inspect switch ports without pulling the full device record.
Instructions
Live per-port state for a switch: link, STP state/role, flaps, errors, PoE and optionally LLDP.
Trims the 1 MB+ device record to the useful port fields (any key starting stp_, poe_, lldp_ or containing error/drop/link_down is kept, so new firmware fields still appear). Read-only; secrets removed.
Returns JSON: {"ok", "data": {"name", "model", "version", "uplink", "stp": {...}, "ports": [...]}}.
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": {
"params": "<params>"
},
"name": "unifi_console_switch_port_detail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |