pt_generate_script
Generates a PTBuilder JavaScript script from a Packet Tracer plan JSON, optionally embedding CLI configs as comments for topology deployment.
Instructions
Generates the PTBuilder JavaScript script.
Parameters:
plan_json: plan JSON
include_configs: if True, includes the CLI configs as comments
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_generate_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_json | Yes | ||
| include_configs | No |