Get Packet Tracer Information
get_pt_informationConnects to Cisco Packet Tracer over IPC and reports version, API spec, device and link counts, workspace mode, and open file to confirm the connection works.
Instructions
Connect to Cisco Packet Tracer over IPC and report its version, the IPC API spec in use, device/link counts, workspace mode (logical/physical, realtime/simulation) and the open file. Call this first to confirm the connection works.
Examples:
"Is Packet Tracer connected?"
"What version of Packet Tracer is running?"
"How many devices are in my network?"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Saved filename of the active network, if any | |
| link_count | Yes | Links in the active network | |
| pt_version | No | Packet Tracer version reported over IPC (e.g. '9.0.1.0858') | |
| server_uid | No | IPC server instance UUID | |
| device_count | Yes | Devices in the active network | |
| ipc_api_spec | Yes | Bundled IPC API spec in use | |
| logical_mode | No | True when the Logical workspace is showing | |
| simulation_mode | No | True when in Simulation mode (False = Realtime) |