list_ports
List ports on a device to see state, IPv4, and connections. Pick free ports before connecting.
Instructions
List a device's ports with their state, IPv4 address when they have one, and what each port is connected to. Use it to pick free ports before connect.
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>"
},
"name": "list_ports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | Device name as shown by `list_devices`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ports | Yes | ||
| device | Yes |