Generate PTBuilder script
generate_scriptCreate a PTBuilder script for a Cisco Packet Tracer topology after validating device and link configuration, ready to paste into Builder Code Editor and run; validation errors block output unless forced.
Instructions
Generate the PTBuilder JavaScript for the current topology. Tell the user to open a new, empty Packet Tracer workspace (File > New), open Extensions > Builder Code Editor, paste the script and click Run. Runs validation first: errors block generation unless force: true. The script is the first text block; warnings, if any, are a second text block.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Generate even if validation reports errors. |