adb_screencap
Capture an Android device screen to an absolute local PNG path and validate the PNG signature before writing, so you can save verified screenshots for monitoring or debugging.
Instructions
Capture the Android device screen to an absolute local PNG path (screencap -p streamed via exec-out); validates the PNG signature before writing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"serial": "<serial>",
"outputPath": "<outputPath>"
},
"name": "adb_screencap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | Yes | ||
| timeoutMs | No | ||
| outputPath | Yes |