Compare Screenshots
screenshot_diffCompare two screenshots to highlight visual changes in red, helping you detect layout shifts, content updates, or unexpected UI changes.
Instructions
Compare two screenshots and produce a third image with changed regions highlighted in red, so you can see what visually changed between two states.
Useful for detecting layout shifts, content updates that should not have happened, focus-ring changes after a click, modal overlays appearing, theme switches, etc. Argus does not auto-judge whether a diff is a bug — you read the side-by-side and decide.
Args:
before: Path or filename of the earlier screenshot (returned
from a previous screenshot() call).
after: Path of the later screenshot.
name: Label for the output diff image.
threshold: 0-255 per-channel pixel difference above which a
pixel is considered "changed". Default 25 (mild).
Lower = more sensitive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | diff | |
| after | Yes | ||
| before | Yes | ||
| threshold | No |