qt_screenshot
Capture screenshots of PySide6 application windows or specific widgets for debugging and inspection purposes. Supports PNG/JPEG formats with size constraints.
Instructions
Take a screenshot of the entire window or a specific widget.
Args:
ref: Widget ref from qt_snapshot (e.g., 'w5'). If omitted, captures active window.
full_window: If True, captures the first visible top-level window.
max_width: Max width before downscaling (default 1920).
max_height: Max height before downscaling (default 1080).
format: Image format - 'png' or 'jpeg' (default 'png').
quality: JPEG quality 1-100 (default 80, ignored for PNG).
Returns a base64-encoded PNG image.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| full_window | No | ||
| max_width | No | ||
| max_height | No | ||
| format | No | png | |
| quality | No |