Screenshot
screenshotCapture an app's largest window or entire display as an image to verify outcomes and view content that accessibility trees cannot describe, including canvas, video, and custom drawings.
Instructions
Capture an app's largest window, or a whole display, as an image. The result text states the capture's screen origin and pixels-per-point so an image pixel can be converted into click or hover coordinates. Prefer get_app_state for interaction, which is cheaper and returns clickable element ids; use screenshot to verify an outcome or to see content the accessibility tree cannot describe (canvas, video, custom drawing), and zoom to read small text. Read-only; the captured window is not raised or focused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | App name, bundle id, or pid exactly as reported by list_apps. Captures that app's largest window. Provide either app or display. | |
| format | No | Image encoding (default png). Use jpeg for live remote viewing. | |
| display | No | 0-based display index from list_displays. Captures the whole display instead of an app window. | |
| max_width | No | Downscale the image to this width in pixels (default 1400). Lower it to save tokens. |