Netbox Connect Cable
netbox_connect_cableConnect two network ports with a new cable by specifying device and port names or IDs; it validates ports before writing and blocks missing, ambiguous, or already-cabled endpoints.
Instructions
Connect ports with a new cable.
Ports can be given by device and name - no ID lookups needed. Fails before writing if a port is not found, is ambiguous or is already cabled. Use netbox_trace_cable afterwards to check the path.
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": {
"a_terminations": "<a_terminations>",
"b_terminations": "<b_terminations>"
},
"name": "netbox_connect_cable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cable | No | Cable attributes, e.g. {'type': 'cat6', 'status': 'connected', 'label': 'C-101', 'color': 'ff0000', 'length': 3, 'length_unit': 'm'}. | |
| a_terminations | Yes | Ports on this end, usually one, e.g. [{'object_type': 'dcim.interface', 'device': 'sw01', 'name': 'eth1'}] or [{'object_type': 'dcim.frontport', 'object_id': 42}]. | |
| b_terminations | Yes | Ports on this end, usually one, e.g. [{'object_type': 'dcim.interface', 'device': 'sw01', 'name': 'eth1'}] or [{'object_type': 'dcim.frontport', 'object_id': 42}]. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||