adb_screenshot_compressed
Captures a screenshot from an Android device, then compresses it by adjusting JPEG quality and scale to reduce file size and token usage for LLM processing. Returns the local file path.
Instructions
Take a screenshot and compress it for reduced file size and LLM token usage. Captures at full resolution then uses device-side conversion to produce a smaller JPEG. Returns the local file path. Ideal for iterative UI testing where token cost matters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quality | No | JPEG quality (10-100, default 50). Lower = smaller file, more artifacts | |
| scale | No | Scale factor (0.1-1.0, default 0.5). 0.5 = half resolution | |
| filename | No | Output filename (default: screenshot_compressed_<timestamp>.jpg) | |
| device | No | Device serial |