screenshot
Capture an Android or iOS device, emulator, or simulator screen as base64 JPEG; optionally crop to a UI element for token-efficient component inspection.
Instructions
Capture a screenshot from an Android or iOS device/emulator/simulator. Returns the image as base64 JPEG. Optionally crop to a specific UI element (token-efficient way to inspect one component).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Scale factor (0.1-1.0). Default: 0.5 (1.0 when cropping) | |
| quality | No | JPEG quality (1-100). Default: 50 (80 when cropping) | |
| platform | No | Target platform. Inferred if omitted. | |
| crop_text | No | Crop to the element whose text contains this substring (case-insensitive) | |
| device_id | No | Device ID. Omit for the connected device. | |
| crop_padding | No | Padding in native pixels around the cropped element. Default: 8 | |
| crop_resource_id | No | Crop to the element whose resource_id contains this substring (case-insensitive) |