Load topology
load_topologyImport a saved Packet Tracer topology from a JSON file and replace the current configuration only after full validation; any error keeps the existing topology.
Instructions
Replace the current topology with one read from a file written by save_topology (a bare get_topology JSON object is accepted too). Use an absolute path: relative paths resolve against $MCP_TRACER_DIR if set, else the server's working directory (now /app), which MCP clients often set arbitrarily. "~" is the user's home directory. Atomic: the file is fully parsed and validated (models, ports, links, IOS and host IP rules) before anything changes; on any error the current topology is kept. Max 5 MB.
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": {
"path": "<path>"
},
"name": "load_topology"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File to read. Only .json file names are accepted; .json is added when the file name has no extension. Absolute path recommended. |