ui_take_screenshot
Take a screenshot of the debugged application's window to verify UI rendering, locate elements absent from the automation tree, and debug visual layout and spacing.
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 |