pt_ui_capture
Captures a PNG of a Packet Tracer device window—or the main window when no device is specified—even if covered, and returns the saved file path.
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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |