Screenshot
screenshotCapture a display as a PNG image downscaled to match click coordinates. Specify a display or use the frontmost window's display automatically for GUI automation.
Instructions
Capture a display as a PNG and return it. The image is downscaled to POINTS, so it is 1:1 with click coordinates. Omit display to capture the display holding the frontmost window (handy with a second monitor); pass 0 for the main display. Needs Screen Recording permission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| display | No | Which display to capture (0 = main). Omit for the frontmost window's display. |