Build topology
build_topologyReplace an entire Cisco Packet Tracer topology in one atomic call: validate devices, links, IOS commands, and PC IP settings before applying, with no changes if anything is invalid.
Instructions
Replace the whole topology in one call. Atomic: if any device, link, IOS block or host IP entry is invalid, nothing changes and the error names the failing item. Same rules as add_device, add_link, configure_device and configure_pc (models are resolved, ports normalized, cables inferred when omitted, IOS commands run in global configuration mode).
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": "build_topology"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ios | No | IOS commands per router/switch (global configuration mode). | |
| pcs | No | Host IP configurations (as configure_pc). | |
| links | No | Links between device ports (at most 2000). | |
| devices | Yes | Devices to create (at most 500). |