screen
Capture a screenshot with compression or diff, or annotate UI elements with bounding boxes. Use for mobile device automation and testing across platforms.
Instructions
Screen capture and annotation. capture: screenshot with compression/diff. annotate: screenshot with element bounding boxes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| platform | No | Target platform. If not specified, uses the active target. | |
| preset | No | Quality preset: low (270x480 q40), medium (540x960 q55, default), high (810x1440 q70) | |
| compress | No | Compress image (default: true) | |
| maxWidth | No | Max width in pixels (default: 540) | |
| maxHeight | No | Max height in pixels (default: 960) | |
| quality | No | JPEG quality 1-100 (default: 55) | |
| monitorIndex | No | Monitor index for multi-monitor desktop setups | |
| diff | No | Compare with previous screenshot (capture only) | |
| diffThreshold | No | Pixel difference threshold 0-255 (default: 30) | |
| waitForStable | No | Wait for UI to stabilize before capturing (capture only) | |
| deviceId | No | Target device ID for multi-device. If omitted, uses active device. |