ui_take_screenshot
Take a screenshot of the debugged application window to inspect its current UI state. Supports image format selection, cropping, and raw PNG evidence for verification.
Instructions
Take a screenshot of the debugged application's window.
Returns inline ImageContent (WebP at max_width resolution) directly to your vision pipeline, plus TextContent with metadata and HD file path.
Set evidence to retain a raw PNG for the active debug session. With strict
physical assertions, a probable-black PrintWindow raster may make one
independently verified BitBlt attempt. Its explicit
typed_bitblt_fallback evidence grade is a distinct capture authority.
Crop coordinates require evidence mode and are applied to the accepted raw PNG.
Args: max_width: Maximum image width. Default 1280; max useful is 1568. format: Image format: "webp" (smallest), "jpeg", "png" evidence: Persist the raw PNG as session-scoped evidence. crop_x: Raw-image crop origin X; requires all crop arguments. crop_y: Raw-image crop origin Y; requires all crop arguments. crop_width: Raw-image crop width; requires all crop arguments. crop_height: Raw-image crop height; requires all crop arguments. expected_hwnd: Require this HWND and physical raster size before persisting evidence. expected_physical_width: Required raw raster width in physical pixels with expected_hwnd. expected_physical_height: Required raw raster height in physical pixels with expected_hwnd.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crop_x | No | ||
| crop_y | No | ||
| format | No | webp | |
| evidence | No | ||
| max_width | No | ||
| crop_width | No | ||
| crop_height | No | ||
| expected_hwnd | No | ||
| expected_physical_width | No | ||
| expected_physical_height | No |