screenshot
Capture a device screenshot as a base64-encoded JPEG. Provide the device serial number to get a full-desktop, browser, or mobile image.
Instructions
Capture a screenshot of a device, as a base64-encoded image.
Works for any platform: the server dispatches the request by device type — computer gives a full-desktop capture, browser a CDP capture, otherwise the device image queue.
Args: serialno: The device serialno, from list_devices.
Returns:
JSON with image_format (the server's format, JPEG) and
image_base64 holding the encoded image bytes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serialno | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |