snapdiff_capture_baseline
Capture a baseline screenshot of a page to serve as the reference for visual change verification. Use this once per page before verifying UI changes.
Instructions
Capture the current state of a page as the visual baseline for a SnapDiff project. Call this once per page before using snapdiff_verify_ui_change — the baseline is the reference screenshot that all future verifications diff against.
For localhost URLs, the page is captured locally with a headless browser (no tunnel needed). For public URLs, the SnapDiff backend captures it. Returns when the baseline is confirmed in place.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | Project slug or ID (prj_xxx). | |
| page_name | Yes | Page name within the project (e.g. "account", "homepage"). Used to match this baseline when verifying. | |
| url | Yes | URL of the page to capture as the baseline. Localhost URLs are captured locally — no tunnel required. | |
| branch | No | Branch to store the baseline on. Defaults to the project's default branch. |