pt_connect
Connect cable devices in a Packet Tracer topology by defining links and optional ports; auto-selects cable type and free ports for serial, fiber, console, or network connections.
Instructions
Cable devices. links: [{a, b, a_port?, b_port?, cable?}]. Ports are optional: the first free port of the right media is chosen (fastest first; on switches use a_pref/b_pref='access' to keep gigabit uplinks free). cable: auto (default) | straight | cross | serial | fiber | console | coaxial | phone. For serial links the device needs a serial module (pt_add_module).
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": {
"links": "<links>"
},
"name": "pt_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| links | Yes |