pt_ui_capture
Captures a Packet Tracer device window as a PNG, even when covered, and returns the saved file path for screenshots of the visible interface.
Instructions
Saves a PNG of a device's window as it looks in PT (or of the main window if device is empty). Works even when the window is covered. Returns the file's PATH, not the image.
Open the tab/app you want first with pt_ui_open (or show=True on the tool you ran). For the logical canvas without the interface there is pt_screenshot.
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_ui_capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| filename | No | ||
| output_dir | No | screenshots |