pt_save_project
Saves the active Packet Tracer topology as a .pkt file to a chosen folder, optionally replacing an existing file, so you can persist lab work without manual Ctrl+S.
Instructions
Saves Packet Tracer's active topology as a .pkt file.
Closes the loop: until now the MCP built the topology but saving it needed Ctrl+S by hand.
Parameters:
filename: file name (.pkt is added if missing)
directory: destination folder. Empty = PT's save folder (on Linux, where PT reports a folder that does not exist, ~/pt/saves). An absolute path must be an existing folder (the user's choice of where labs live); a relative one is a folder inside the MCP's working directory.
overwrite: replace an existing file (default False: an existing file is an error).
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": {
"filename": "<filename>"
},
"name": "pt_save_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| directory | No | ||
| overwrite | No |