screenshot
Capture a monitor, window, or screen region. Returns image and JSON metadata with geometry and scale for pixel-to-global mapping. Supports stable waiting for complete frames and lossless PNG output.
Instructions
Capture the focused monitor, a window (window: "active" or an
address from desktop, cheapest for reading one app), or a region
"x,y,WxH". Returns the image (or a file path to read) + JSON metadata
with geometry/scale for pixel→global mapping. scale 0.1-1.0:
optional deliberate downscale, usually leave unset. stable=true
waits (up to 2s) until two consecutive frames match, so a capture
right after an action is not taken mid-animation; metadata gains
stable. Captures are fast JPEG by default; lossless=true returns
PNG for pixel-exact work. Before clicking a small control, follow with
zoom at the estimated point.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | ||
| region | No | ||
| stable | No | ||
| window | No | ||
| lossless | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |