as_adb_screenshot
Capture a device screenshot and save it as a PNG file on your PC via ADB. Specify the output path and optional device serial.
Instructions
Capture the device screen to a PNG on this PC (adb exec-out screencap).
Args: params (ScreenshotInput): out_path (inside a workspace root), serial.
Returns: str: JSON with 'saved_to' and the file size.
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": {
"params": "<params>"
},
"name": "as_adb_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |