pt_export
Exports a plan JSON to JavaScript, CLI configs, and JSON files, saving outputs to a project folder in the MCP working directory.
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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |