Diff UI against baseline
ui_diffCompare a page against its baseline and return only changed regions as cropped images plus a summary, within a token budget.
Instructions
Re-capture a page, pixel-diff it against the baseline for its label, and return ONLY what changed: a text summary plus cropped images of changed regions (largest first) that fit within maxTokens. Omitted regions are listed so you can fetch them with ui_region. The new capture becomes the baseline. If no baseline exists, behaves like ui_capture.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Page URL, e.g. http://localhost:3000/settings | |
| label | No | Baseline label. Defaults to a slug of the URL path. Keep one label per route. | |
| waitFor | No | CSS selector to wait for, or ms to wait | |
| baseline | No | 'previous' (default) or a captureId from ui_list | |
| darkMode | No | Emulate prefers-color-scheme: dark. | |
| fullPage | No | Capture the full scrollable page (bigger, costlier). Default false. | |
| viewport | No | ||
| maxTokens | No | Token budget for this response (text + images). Default 4000. | |
| includeFull | No | Also return the full screenshot (downscaled to budget). Default false. |