Get Interfaces for a Device
get_interfaces_for_deviceLists a device's ports with names, link/protocol state, MAC, IPv4 address, and attached remote port so you can inspect interfaces and connectivity in Packet Tracer.
Instructions
List a device's ports: name, IPC class, link/protocol state, MAC, IPv4 address/mask (host ports), and the remote port name if a cable is attached.
Examples:
"What interfaces does R1 have?"
"Which ports on the switch are connected?"
"Show PC0's IP address"
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": {
"name": "<name>"
},
"name": "get_interfaces_for_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Device display name as shown in Packet Tracer (e.g. 'Router0', 'PC1') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |