pt_workspace_options
Read or adjust Packet Tracer workspace options such as auto-cabling, external network access, and canvas labels to gain precise control for scripted topology builds or readable captures.
Instructions
Reads and adjusts PT workspace options that affect how it behaves.
Without arguments it is read-only. The flags are tri-state: 1 enables, 0 disables, -1 (default) leaves alone.
Parameters:
auto_cabling: PT's auto-cabling picks the cable and the port for you. Turn it off before building topologies by script if you want exact control over which port is used.
external_network_access: lets PT reach the machine's REAL network. Off by default; turning it on takes traffic out of the simulator.
show_port_labels / show_link_lights / show_device_labels: what is shown on the canvas. It matters for a capture to be readable.
Example: turn auto-cabling off before a scripted deploy: pt_workspace_options(auto_cabling=0)
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": "pt_workspace_options"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auto_cabling | No | ||
| show_link_lights | No | ||
| show_port_labels | No | ||
| show_device_labels | No | ||
| external_network_access | No |