Screenshot
screenshotCapture an app window or display as an image to verify outcomes, inspect canvas/video, and map image pixels to click or hover coordinates.
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, or "frontmost" for the app the user is looking at | |
| 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. | |
| quality | No | JPEG quality from 1 to 100 (default 55). Ignored for png. Raise it when small text must stay sharp. | |
| max_width | No | Downscale the image to this width in pixels (default 1400). Lower it to save tokens. |