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.
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": "take_screenshot"
}
}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') |