pt_build_topology
Build a Cisco Packet Tracer topology in one call: add devices, cable links, apply IOS configs, set host addressing, and save the project.
Instructions
Build a whole lab in one call.
devices: [{"name":"R1","type":"router","model":"2911","x":300,"y":100}, ...] links: [{"a":"R1","a_port":"GigabitEthernet0/0","b":"S1","b_port":"GigabitEthernet0/1","cable":"straight"}] ios_configs: {"R1": ["hostname R1", "interface g0/0", "ip address 10.0.0.1 255.255.255.0", "no shutdown"]} hosts: [{"name":"PC1","ip":"10.0.0.10","mask":"255.255.255.0","gateway":"10.0.0.1","dns":null,"port":"FastEthernet0"}] Steps run in that order; each step's error is reported without aborting the rest.
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": {
"devices": "<devices>"
},
"name": "pt_build_topology"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hosts | No | ||
| links | No | ||
| devices | Yes | ||
| save_path | No | ||
| ios_configs | No | ||
| new_project | No |