Get Screen Diff
get_screen_diffMeasure the perceptual-hash distance between the current screen and a cached baseline to detect screen changes before spending vision tokens. Returns diagnostics only.
Instructions
Compute the perceptual-hash distance between the current screen and the cached baseline (set by previous calls of get_screen_diff or screenshot_if_changed). Returns only diagnostics — no image. Useful for polling whether a screen has changed before spending vision tokens. Default updateBaseline=false (read-only check).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cacheKey | No | Override cache key. Default = displayId. Cache is shared with `screenshot_if_changed` — use the same cacheKey to make distance numbers comparable across the two tools. | |
| displayId | No | Display id from `list_displays`. Omit for primary. | |
| updateBaseline | No | If true, advance the cached baseline to the current value (subsequent calls measure distance from this call). Default false to keep the reference point stable for repeated polling. Regardless of this flag, the first observation for a cacheKey always establishes the baseline. |