Capture an Android display
mobile_screen_captureCapture a specific Android logical display as an image. Returns screenshot pixels and coordinate scaling for accurate mobile input taps.
Instructions
Capture one logical display after resolving its SurfaceFlinger physical display ID. Images whose long edge exceeds 1280px are downscaled before they are returned. coordinateSpace.scaleX and scaleY convert those screenshot pixels into the logical coordinates used by mobile_input_tap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | Yes | Exact ADB serial from mobile_devices_list; never inferred when multiple devices exist | |
| displayId | Yes | Android framework logical display ID, not a SurfaceFlinger physical ID | |
| saveArtifact | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | Yes | ||
| display | Yes | ||
| mimeType | Yes | ||
| sizeBytes | Yes | ||
| downscaled | Yes | ||
| durationMs | Yes | ||
| artifactUri | No | ||
| coordinateSpace | Yes |