ui_take_screenshot
Capture the debugged application's window for AI vision inspection, returning inline WebP with metadata and an HD file path; optionally persist raw PNG evidence.
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. A probable-black
PrintWindow raster may make one independently verified BitBlt attempt through
the FlaUI bridge. Its explicit typed_bitblt_fallback evidence grade is a
distinct capture authority; strict physical assertions separately validate the
caller-supplied target. 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 |