Save topology
save_topologySave the current network topology (devices, links, IOS commands, host IP settings) to a JSON file that can be reloaded later. Existing files are overwritten only when overwrite is set.
Instructions
Save the current topology (devices, links, IOS commands, host IP configurations) to a JSON file that load_topology can read back. 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. Missing folders are created. Refuses to replace an existing file unless overwrite: true. The result shows the absolute path written.
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": "save_topology"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File to write, e.g. C:\labs\vlans.json or /home/me/labs/vlans.json. Only .json file names are accepted; .json is added when the file name has no extension. Absolute path recommended. | |
| overwrite | No | true = replace the file if it already exists. |