pt_connect_devices
Connect two free ports on Packet Tracer devices with a straight or crossover cable to establish a network link.
Instructions
Connect two available ports using a straight/crossover cable. / 连接两个空闲端口。
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": {
"device_a": "<device_a>",
"port_a": "<port_a>",
"device_b": "<device_b>",
"port_b": "<port_b>"
},
"name": "pt_connect_devices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cable | No | Cable type; default straight. / 线缆类型,默认直通。 | |
| port_a | Yes | First exact port name. / 端口一。 | |
| port_b | Yes | Second exact port name. / 端口二。 | |
| device_a | Yes | First device. / 设备一。 | |
| device_b | Yes | Second device. / 设备二。 |