run_qa
Capture live web pages and compare them against reference screenshots using SSIM to detect visual regressions, returning failures, changed regions, and previews.
Instructions
Capture pages from the running site and SSIM-compare them with the reference screenshots.
pages: reference names (file names without extension); default all references.
viewport: all | desktop | mobile (names ending in "-mobile" use a 390px mobile context).
profile: auth profile for pages behind a login.
align: how to handle different image sizes — resize (default, legacy), crop, or pad
(pad makes page-height changes count as differences).
A page FAILs when SSIM < threshold OR more than max_changed_ratio of its pixels clearly
changed colour (catches local changes such as a recoloured header that SSIM averages away).
Returns a JSON summary (failures first, with changed regions in px) plus side-by-side
reference|live preview images of up to max_images failing pages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| align | No | resize | |
| pages | No | ||
| profile | No | ||
| base_url | No | ||
| viewport | No | all | |
| threshold | No | ||
| max_images | No | ||
| max_changed_ratio | No |