pt_connect
Cables two Packet Tracer device ports together using a specified cable type or auto selection to build and modify network topologies.
Instructions
Cable two ports together, e.g. ('R1','GigabitEthernet0/0','S1','GigabitEthernet0/1','straight'). Use 'straight' for unlike devices (PC-switch, switch-router), 'cross' for like devices (switch-switch, PC-PC, router-router Ethernet), 'serial' for WAN serial links, 'console' for PC RS232 <-> router Console. 'auto' lets PT choose.
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": {
"device1": "<device1>",
"port1": "<port1>",
"device2": "<device2>",
"port2": "<port2>"
},
"name": "pt_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cable | No | auto | |
| port1 | Yes | ||
| port2 | Yes | ||
| device1 | Yes | ||
| device2 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |