Capture UI baseline
ui_captureCapture a page screenshot as a baseline before editing so later diffs can compare changes. Returns a compact text summary of console errors, failed requests, and layout issues.
Instructions
Screenshot a page and save it as the baseline for its label. Returns a compact text summary (title, console errors, failed requests, overflow, a11y violations). The image is returned only on the first capture of a label or when includeFull=true. Call this BEFORE editing so ui_diff has something to compare against.
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 | |
| 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. |