take_screenshot
Capture the Android device screen and either save it to a specified host file path or return the image as a PNG for direct use.
Instructions
Capture the device screen. If savePath is provided, saves to the host machine. Otherwise, returns the image directly to the client as a renderable PNG image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Specific device serial number | |
| savePath | No | Absolute file path on the host to save the screenshot (e.g. '/Users/user/Desktop/screenshot.png') |