adb_screenshot_compressed
Captures a full-resolution Android screenshot and returns its path, dimensions, file size, and a ready-to-run ImageMagick command for converting it to a smaller JPEG.
Instructions
Take a screenshot and pull the full-resolution PNG, plus metadata for client-side compression. Returns local file path, dimensions, file size, and a ready-to-run imagemagick command for converting to a smaller JPEG. (Android doesn't ship imagemagick, so the actual compression is post-processing — this tool sets up everything you need.)
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": "adb_screenshot_compressed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Scale factor (0.1-1.0, default 0.5). 0.5 = half resolution | |
| device | No | Device serial | |
| quality | No | JPEG quality (10-100, default 50). Lower = smaller file, more artifacts | |
| filename | No | Output filename (default: screenshot_compressed_<timestamp>.jpg) |