ui_take_screenshot
Capture a screenshot of the debugged application's UI to verify rendering and debug visual layout. Returns image data and file path for analysis.
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.
Use this to see the actual UI state — what the user would see.
Useful for:
Verifying UI rendered correctly after a debug step
Finding elements that don't appear in the automation tree
Understanding visual layout and spacing
Debugging rendering issues
Note: If app is STOPPED at breakpoint, resume with continue_execution() first.
Args: max_width: Maximum image width. Default 1280; max useful is 1568. format: Image format: "webp" (smallest), "jpeg", "png"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_width | No | ||
| format | No | webp |