adb_screenshot_diff
Compare the current Android screen to a saved baseline screenshot and detect pixel-level differences. Get exact count, percentage, and bounding box of changes, with adjustable tolerance to ignore minor dynamic elements.
Instructions
Compare the current screen against a saved screenshot baseline. Decodes PNGs and performs pixel-level comparison (RGB channels), reporting exact pixel difference count, percentage, and the bounding box of the changed region. Supports a tolerance threshold for absorbing minor dynamic elements like clocks or notification badges.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baseline | Yes | Baseline name to compare against (from adb_screenshot_baseline) | |
| tolerancePercent | No | Pixel difference percentage threshold below which the result reports IDENTICAL. 0 = exact match required. 1-2 absorbs clock/status bar changes. | |
| device | No | Device serial |