pt_export
Exports a topology plan to JavaScript, CLI configuration, and JSON files so you can save and reuse Packet Tracer build artifacts in a chosen output folder.
Instructions
Exports the plan to files: JS script, CLI configs and JSON.
Parameters:
plan_json: plan JSON
project_name: project name
output_dir: folder inside the MCP's working directory (PT_MCP_WORKDIR); a path that points elsewhere is reduced to a folder name there.
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": {
"plan_json": "<plan_json>"
},
"name": "pt_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_json | Yes | ||
| output_dir | No | projects | |
| project_name | No | topology |