da_verify_pixels
Block until a screenshot matches a pixel predicate: count of a color or diff from a baseline, within an optional region. Verifies visual state after actions, with timeout.
Instructions
Block until a pixel-level predicate holds on the next screenshot, or timeoutMs (default 10000, max 60000) elapses. Predicates: {kind:"color", rgb:[r,g,b], tolerance?, minCount} (counts matching pixels, succeeds when count >= minCount); {kind:"diff", baseline:"", threshold, tolerance?} (succeeds when >= threshold fraction of pixels differ from the baseline PNG). Optional region clips the check to a rectangle. Polls every intervalMs (default 200). Throws NOT_FOUND on timeout. Use this to verify visual state after an action (e.g. "wait until 200+ red pixels appear on the canvas").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | ||
| displayId | No | ||
| predicate | Yes | ||
| timeoutMs | No | ||
| intervalMs | No |