pt_read_cdp
Read the live CDP neighbour table to see which device is cabled to which port, including platform and capabilities; filter by device name to verify topology.
Instructions
Reads the REAL CDP neighbour table: who is cabled to which port.
Per neighbour: device id, local and remote port, platform, capability. CDP announces every 60 s: right after a deploy the table is empty.
Parameters:
device: device name; empty = every device.
Example: pt_read_cdp(device="SW1")
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pt_read_cdp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |