Agentic Workflows (MCP)
RegressionBot supports the Model Context Protocol (MCP). Expose visual testing tools directly to your AI apps and agents (Cursor, Claude Code and OpenAI Codex) via our remote Streamable HTTP MCP server. This allows your agents to autonomously trigger visual regression jobs. They can also check job status and approve baselines. No local installation is required.
Key or Sign-in?
Every client connects to the same URL, https://mcp.regressionbot.com/. What differs is how it proves who you are.
| You use | Connect with |
|---|---|
| Cursor | Either: a key in the header, or add the server URL and sign in |
| Claude Code | Either: a key in the header, or sign-in from /mcp |
| Codex app or IDE extension | Sign-in. A key works only when the app is started from a terminal that exports it. Not yet verified. |
| Codex CLI | Either: codex mcp login regressionbot, or a key in an environment variable. Not yet verified. |
| Claude (web, Desktop, iPhone, Android) | Sign-in. Not yet verified. |
| Antigravity | Sign-in (or a key in headers). Not yet verified. |
| Gemini CLI, Windsurf | A key in the header. Not yet verified; sign-in from these apps isn't confirmed. |
| CI pipelines, scripts, the REST API | A key, always |
A key goes in the Authorization: Bearer YOUR_API_KEY header (or the legacy x-api-key header). Create one in the dashboard's API Keys tab. When a client sends a key, it is never asked to sign in.
Install
RegressionBot's MCP endpoint is Streamable HTTP. Configure the remote URL https://mcp.regressionbot.com/ directly, exactly as written here, and do not configure it as a legacy SSE server.
Cursor
Configure remote servers directly through Cursor's graphical interface to keep your API keys encrypted. To sign in instead of using a key, add the server URL and leave the header out, then sign in with your RegressionBot account when Cursor prompts you.
- Open Cursor Settings and navigate to Features > MCP Servers.
- Click + Add New MCP Server.
- Fill out the configuration:
- Name:
regressionbot - Type:
http - URL:
https://mcp.regressionbot.com/
- Name:
- Add a header row:
- Using Bearer Auth (recommended): set key to
Authorizationand value toBearer YOUR_API_KEY. - Or using Custom Header (legacy): set key to
x-api-keyand value to your API key.
- Using Bearer Auth (recommended): set key to
- Click Save and verify the green status indicator.
Cursor CLI (cursor-agent). It reads the same ~/.cursor/mcp.json (or a project's .cursor/mcp.json), but a server there is not loaded until you approve it. Run cursor-agent mcp enable regressionbot once, then cursor-agent mcp list to check it shows as connected. To sign in instead of using a key, run cursor-agent mcp login regressionbot.
Claude Code
Add the server with your key in the header:
claude mcp add --transport http regressionbot https://mcp.regressionbot.com/ --header "Authorization: Bearer YOUR_API_KEY"Sign-in instead of a key (optional): add the server without --header:
claude mcp add --transport http regressionbot https://mcp.regressionbot.com/Then, inside Claude Code, run /mcp, select regressionbot and choose Authenticate. A browser opens. Sign in, check that the permission page names Claude Code and says access goes to an app on this computer, and select Allow.
OpenAI Codex
Should work, not yet verified
Codex reads MCP servers from ~/.codex/config.toml (or a project-scoped .codex/config.toml), and the CLI, IDE extension and Codex app share it. Connect by signing in, or with a key. Based on OpenAI's Codex MCP documentation.
Option 1: sign in
[mcp_servers.regressionbot]
url = "https://mcp.regressionbot.com/"codex mcp login regressionbotA browser opens. Sign in with your RegressionBot account and select Allow. The permission page names Codex and says access goes to an app on this computer. In the Codex app or IDE extension, select Authenticate next to the RegressionBot server instead.
Option 2: a key
[mcp_servers.regressionbot]
url = "https://mcp.regressionbot.com/"
bearer_token_env_var = "REGRESSIONBOT_API_KEY"bearer_token_env_var is the name of an environment variable holding your key, not the key itself. Export it in the shell that starts Codex:
An app opened from the Dock, Finder or Start menu doesn't read your shell's exports, so use sign-in there.
Other MCP clients
These setups should work, but we have not verified them end to end yet. Each is marked.
Claude apps (web, Desktop, iPhone, Android)
Should work, not yet verified
Claude connects to RegressionBot as a custom connector, and you sign in with your RegressionBot account. No key is needed.
- In Claude on the web or in Claude Desktop, open Customize > Connectors > Add custom connector.
- Enter the URL
https://mcp.regressionbot.com/. Leave the OAuth Client ID and Client Secret fields empty. - If the dialog asks how people connect, choose Sign in now. (“Sign in when needed” also works.)
- Select Connect. The RegressionBot sign-in page opens on regressionbot.com. If you're already signed in to RegressionBot in that browser, it goes straight on; otherwise sign in with your RegressionBot email, or with Google if that is how you sign in to RegressionBot.
- The permission page names Claude. Read it and select Allow, and you're back in Claude.
A RegressionBot page headed “Claude wants to use RegressionBot as you@example.com in Your Org”. It says access is sent to claude.ai and lists what Claude will be able to do (see permissions). If someone else's account is shown, select Not you? Use a different account.
- Mobile: a connector added on the web or in Desktop also appears in the Claude iPhone and Android apps when you're signed in to the same Claude account. You don't need to add it again on your phone.
- Team and Enterprise plans: an Owner adds the connector for the organization, and then each member selects Connect and signs in with their own RegressionBot account.
Google Antigravity
Should work, not yet verified
Add the server to the MCP config file that Antigravity's MCP settings open: usually ~/.gemini/config/mcp_config.json, or .agents/mcp_config.json inside a workspace. Then connect by signing in, or with a key.
Option 1: sign in
{
"mcpServers": {
"regressionbot": {
"serverUrl": "https://mcp.regressionbot.com/"
}
}
}- Open Agent settings > Customizations and select Authenticate next to RegressionBot.
- A browser opens. Sign in with your RegressionBot account. The permission page names Antigravity and says access goes to antigravity.google. Select Allow.
- The browser shows a code. Copy it into Antigravity's settings and select Submit within 5 minutes. A code works once.
Option 2: a key
Add a headers entry. No sign-in is needed.
{
"mcpServers": {
"regressionbot": {
"serverUrl": "https://mcp.regressionbot.com/",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Windsurf
Should work, not yet verified
Windsurf handles remote Streamable HTTP MCPs using a structured JSON file. Sign-in from Windsurf isn't confirmed yet, so use a key. Add the following to your ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"regressionbot": {
"serverUrl": "https://mcp.regressionbot.com/",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Gemini CLI
Should work, not yet verified
Gemini CLI supports direct Streamable HTTP transport. Sign-in from Gemini CLI isn't confirmed yet, so use a key. Configure it via the command line or a settings file:
gemini mcp add --transport http regressionbot https://mcp.regressionbot.com/ --header "Authorization: Bearer YOUR_API_KEY"{
"mcpServers": {
"regressionbot": {
"httpUrl": "https://mcp.regressionbot.com/",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Sign-in, Permissions and Staying Connected
When an app connects by sign-in, your browser opens the RegressionBot sign-in page on regressionbot.com. If you signed in to regressionbot.com in that browser within the last 24 hours, this step is skipped. Then RegressionBot shows a permission page naming the app, the account and organization it will act as, and where access is sent. For an app on your own computer (Claude Code, the Codex CLI) the page says “an app on this computer”.
RegressionBot names Claude, Claude Code, Codex and Antigravity. Any other app is shown as unverified, with a warning: only continue if you started the connection yourself. An app on your own computer that RegressionBot can't name gets one notice saying so. That is expected for a CLI you just started, such as the Antigravity CLI.
What a connected app can do
- See your projects, runs and results.
- Start runs. Each comparison counts toward your plan. Runs stop at your limit; upgrade to continue.
- Approve changes as the new baseline, edit projects (which can reset their baselines), and save login details for gated sites.
You allow all of this or nothing; there is no way to pick some of it. An app acts as you, with your role: a page it approves is recorded as approved by your email, and comparisons it starts show in the dashboard's Usage tab under the app's name and your email.
Staying connected
- You're asked to reconnect after 30 days without use, and in any case every 90 days. The app then reports that it needs authentication, or that RegressionBot is disconnected. Reconnect the same way you connected: Connect on the connector in Claude,
/mcp> Authenticate in Claude Code,codex mcp login regressionbotor Authenticate in Codex, and Authenticate in Antigravity. - A connection belongs to the organization you were in when you connected. If you move to another organization, or leave or are removed from one, connect again.
- Removing the connector in Claude, Codex or Antigravity may not disconnect it on our side. Also disconnect it in the dashboard: API Keys tab > Connected apps > Disconnect. It loses access immediately. Admins and owners see every connected app in the organization there; members see their own.
What needs an admin
- Setting a project's schedule needs an org admin, as in the dashboard's Schedules tab. A schedule belongs to the project, not the app: other admins can see and change it in the Schedules tab, and it keeps running if the app is disconnected.
- Setting a project's standing intent needs an org admin. A member's connected app is refused; ask an admin to set it, in the dashboard's Schedules tab or from their own connected app.
Troubleshooting
- Your CLI asks you to sign in even though you set a key
- Your key isn't being sent. Check the header name (
Authorization: Bearer YOUR_API_KEY) or the environment variable your config names, and that the variable is exported in the shell that starts the client. - The server doesn't connect
- Use exactly
https://mcp.regressionbot.com/, as in the snippets above. Don't add a path or drop the trailing slash. - A tool says “Unauthorized: Invalid API Key”
- The key you configured was revoked or mistyped. Create a new one in the API Keys tab, or remove the key from the config and sign in instead.
- A tool says “… needs permission to …”
- The app's connection doesn't cover that tool, usually because it connected before the tool needed a new permission. Disconnect it in the API Keys tab and connect again, allowing everything on the permission page.
- A run is refused with “trial expired” or “subscription is no longer active”
- The app is connected, but your organization can't start runs. Reading results still works. See 402 Payment Required.
- The code doesn't work in Antigravity
- Codes last 5 minutes and work once. Select Authenticate again and paste the new code straight away.
- Codex says “Authentication required”
- The connection expired or was disconnected. Run
codex mcp login regressionbotagain.
Pages you might see while signing in
- “We couldn't identify this app”
- The app didn't identify itself in a way RegressionBot accepts. Go back to your app and connect again. If it keeps happening, connect with an API key instead.
- “This connection link isn't valid”
- The app asked RegressionBot to send you somewhere it didn't register, so the sign-in stopped. Go back to your app and connect again.
- “This sign-in request isn't valid”
- An app RegressionBot can't name asked to connect in a way RegressionBot doesn't support, so the sign-in stopped here instead of sending you on. Go back to your app and connect again. If it keeps happening, connect with an API key instead.
- “This sign-in expired”
- The sign-in took longer than 10 minutes, or finished in a different browser from the one it started in. Go back to your app and select Connect again, and finish in the browser that opens.
- The sign-in page asks you to sign in again, although you're signed in to RegressionBot
- Connecting an app needs a sign-in from the last 24 hours. If your last sign-in was longer ago, sign in again on that page and the connection carries on.
- “This sign-in was already used” or “This sign-in link isn't valid any more”
- Each connection can be signed in to once, and the step back from the sign-in page works once, within two minutes, in the browser that started it. Go back to your app and select Connect again.
- “Verify your email first”
- Open the verification email from RegressionBot, or sign in at regressionbot.com to resend it. Then connect again.
- “Finish setting up RegressionBot”
- Your sign-in worked, but your account has no organization yet. Finish setting up at regressionbot.com, then connect again.
- “You're not in an organization any more”
- You left or were removed from your organization, and its connections were disconnected. Ask an admin to invite you again, or create an organization at regressionbot.com.
- “Something went wrong”
- Go back to your app and connect again. If it keeps happening, email support@regressionbot.com with the code the page shows.
See Changes in the Chat
In chat apps that can show interactive results (Claude.ai, Claude Desktop, VS Code Copilot, Goose and others), asking for a job's results shows a viewer under the answer. In the Claude apps, connect by signing in; no key is needed. Every change on a changed page appears twice, before and after, side by side, with the changed element outlined and the exact edit written underneath.
- Approve or reject one page at a time. The viewer asks you to confirm first, and your chat app may ask too. Approving makes that page's new capture its baseline. There is no button that approves a whole run; ask your agent for that.
- Full view opens the page in the review screen, with every view and every change.
- A run's results, images and share links are kept for 30 days from the run, then deleted. After that the viewer has nothing to show for it.
Clients that don't show interactive results, such as Claude Code, the Codex CLI, Cursor and Gemini CLI, get the same text results as before. Nothing to configure. Whether the viewer shows in the Claude mobile apps, the Codex app and IDE extension, and Antigravity is not confirmed yet; where it doesn't, you get the text results.
Agent Examples
These examples show a real session with an MCP-enabled agentic IDE or CLI. The agent connects to the RegressionBot MCP server. It handles polling, result interpretation, and image analysis automatically.
Legend: USER> is what the user types, AGENT> is the assistant response, TOOL> is an MCP tool call, and TOOL RESULT> is raw tool output.
Compare a preview URL against production baselines
USER> start a visual regression job for https://staging.myapp.com against stored baselines
AGENT> I'll trigger a visual regression job using the RegressionBot MCP.
TOOL> [run_regression_job]
testOrigin: "https://staging.myapp.com"
project: "myapp"
devices: ["Desktop Chrome", "iPhone 12"]
TOOL RESULT> {
"message": "Job started",
"jobId": "6ee84bac-40de-44cc-8dca-4760ab108153"
}
TOOL> [get_job_status] jobId: "6ee84bac-40de-44cc-8dca-4760ab108153", waitSeconds: 25
# The call held open for 25s and the job is still going. Call again —
# no sleep needed in between.
TOOL RESULT> {
"jobId": "6ee84bac-40de-44cc-8dca-4760ab108153",
"status": "COMPLETED",
"readyForSummary": false,
"isComplete": true,
"summaryStatus": "PROCESSING",
"progress": { "total": 6, "completed": 6, "percent": "100.00" },
"executionTime": 41
}
TOOL> [get_job_status] jobId: "6ee84bac-40de-44cc-8dca-4760ab108153", waitSeconds: 25
# Returned as soon as the summaries landed, without using the full 25s.
TOOL RESULT> {
"jobId": "6ee84bac-40de-44cc-8dca-4760ab108153",
"status": "COMPLETED",
"readyForSummary": true,
"isComplete": true,
"summaryStatus": "COMPLETE",
"progress": { "total": 6, "completed": 6, "percent": "100.00" },
"executionTime": 48
}
TOOL> [get_job_summary] jobId: "6ee84bac-40de-44cc-8dca-4760ab108153", regressionsOnly: true
TOOL RESULT> {
"regressionCount": 2,
"matchCount": 4,
"newBaselineCount": 0,
"newPageCount": 0,
"regressions": [
{
"url": "https://staging.myapp.com/pricing",
"variantName": "Desktop Chrome",
"status": "SUCCESS",
"diffPercentage": 3.64,
"visualMatchScore": 96.36,
"changed": true,
"isNewBaseline": false,
"regressionbotSummary": [
{"label":"","text":"The Pro tier card gets a highlighted border and a blue call-to-action button."},
{"label":"A","text":"background-color: rgb(156, 163, 175) → rgb(37, 99, 235)"}
],
"diffUrl": "https://screenshots.regressionbot.com/r/token"
},
{
"url": "https://staging.myapp.com/pricing",
"variantName": "iPhone 12",
"status": "SUCCESS",
"diffPercentage": 5.12,
"visualMatchScore": 94.88,
"changed": true,
"isNewBaseline": false,
"regressionbotSummary": [
{"label":"","text":"The Pro tier card gets a highlighted border and a blue call-to-action button."},
{"label":"A","text":"background-color: rgb(156, 163, 175) → rgb(37, 99, 235)"}
],
"diffUrl": "https://screenshots.regressionbot.com/r/token"
}
]
}
AGENT> The job completed in 48 seconds. I found 2 regressions:
• /pricing [Desktop Chrome] — 3.64% of the page
The Pro tier card's button background changed from gray (rgb(156, 163, 175))
to blue (rgb(37, 99, 235)), and the card gained a highlighted border.
• /pricing [iPhone 12] — 5.12% of the page
The same button color and card border change as on desktop.
AGENT> The other 4 pages matched their baselines exactly.
AGENT> Would you like me to fetch the regression images and review them before approving?Inspect a regression image and approve
USER> yes, look at the pricing regression and tell me if the changes look intentional
AGENT> [reading changes for /pricing Desktop Chrome, fetching currentUrl and cropping each box...]
AGENT> I can see both changed regions.
AGENT> The regressions are clearly intentional:
- The Pro plan card now has a visible border and background highlight
- The "Get started" button changed from gray to blue
- No layout shifts, broken text, or clipped elements
AGENT> This looks like a deliberate design update. Safe to approve.
USER> approve it
TOOL> [approve_job] jobId: "6ee84bac-40de-44cc-8dca-4760ab108153"
TOOL RESULT> {
"message": "Job approved",
"approvedCount": 2,
"failedCount": 0
}
AGENT> Done. The 2 updated screenshots have been promoted to new baselines.
AGENT> Future jobs will compare against the new design.Provide PR intent for automated visual approval
USER> Check the UI for regressions. The PR updates the header background to blue.
AGENT> I'll run the regression job and pass the developer's intent via runContext so the AI can automatically classify the change.
TOOL> [run_regression_job]
project: "myapp"
runContext: { "prDescription": "The PR updates the header background to blue." }
TOOL RESULT> { "message": "Job started", "jobId": "a1b2c3d4-..." }
AGENT> [get_job_status with waitSeconds: 25 until readyForSummary is true...]
AGENT> The summaries are ready. I'll read the verdict.
TOOL> [get_job_summary] jobId: "a1b2c3d4-...", regressionsOnly: true
TOOL RESULT> {
"regressionCount": 1,
"intentAssessment": {
"decision": "pass",
"intentProvided": true,
"bugCount": 0,
"intentionalCount": 1,
"noiseCount": 0,
"needsReviewCount": 0,
"allAccountedFor": true,
"summary": "All 1 regression(s) match the stated intent. Safe to approve."
},
"regressions": [
{
"url": "https://staging.myapp.com/",
"variantName": "Desktop Chrome",
"verdict": {
"decision": "intentional",
"minConfidence": 0.94,
"basis": "measured",
"reasoning": "The header background-color changed from #ffffff to #1d4ed8 and nothing else moved.",
"coveredBy": "updates the header background to blue"
}
}
]
}
AGENT> intentAssessment.decision is "pass": the one changed page has a verdict of
AGENT> "intentional" that quotes your intent back. Nothing sits at bug or needs_review.
AGENT> I can approve the job, or you can open the inspect view first.Run multiple jobs in parallel across devices
USER> test the PR preview against baselines on desktop, mobile, and tablet
AGENT> I'll start 3 parallel jobs — one per device — then poll all of them.
TOOL> [run_regression_job] project: "myapp", devices: ["Desktop Chrome"]
TOOL RESULT> { "jobId": "31c66aa4-5bd7-4df1-a8e3-1394d77a33f9" }
TOOL> [run_regression_job] project: "myapp", devices: ["iPhone 12"]
TOOL RESULT> { "jobId": "1a597938-b08e-4417-9802-cbb457870c96" }
TOOL> [run_regression_job] project: "myapp", devices: ["iPad Mini"]
TOOL RESULT> { "jobId": "d5452cb0-6b7a-4186-a0b1-0e23204a31e3" }
TOOL> [get_job_status] jobId: "31c66aa4-5bd7-4df1-a8e3-1394d77a33f9"
TOOL RESULT> { "status": "PROCESSING", "isComplete": false, "progress": { "total": 3, "completed": 1, "percent": "33.33" } }
TOOL> [get_job_status] jobId: "1a597938-b08e-4417-9802-cbb457870c96"
TOOL RESULT> { "status": "PROCESSING", "isComplete": false, "progress": { "total": 3, "completed": 2, "percent": "66.67" } }
TOOL> [get_job_status] jobId: "d5452cb0-6b7a-4186-a0b1-0e23204a31e3"
TOOL RESULT> { "status": "PROCESSING", "isComplete": false, "progress": { "total": 3, "completed": 0, "percent": "0.00" } }
...
TOOL> [get_job_status] jobId: "31c66aa4-5bd7-4df1-a8e3-1394d77a33f9"
TOOL RESULT> { "status": "COMPLETED", "isComplete": true, "progress": { "total": 3, "completed": 3, "percent": "100.00" } }
TOOL> [get_job_status] jobId: "1a597938-b08e-4417-9802-cbb457870c96"
TOOL RESULT> { "status": "COMPLETED", "isComplete": true, "progress": { "total": 3, "completed": 3, "percent": "100.00" } }
TOOL> [get_job_status] jobId: "d5452cb0-6b7a-4186-a0b1-0e23204a31e3"
TOOL RESULT> { "status": "COMPLETED", "isComplete": true, "progress": { "total": 3, "completed": 3, "percent": "100.00" } }
TOOL> [get_job_summary] jobId: "31c66aa4-5bd7-4df1-a8e3-1394d77a33f9", regressionsOnly: true
TOOL RESULT> {
"regressionCount": 1,
"regressions": [{ "url": "https://staging.myapp.com/about", "variantName": "Desktop Chrome", "diffPercentage": 1.8, "regressionbotSummary": [{ "label": "A", "text": "\"Meet the team\" → \"Meet our team\"" }] }]
}
TOOL> [get_job_summary] jobId: "1a597938-b08e-4417-9802-cbb457870c96", regressionsOnly: true
TOOL RESULT> {
"regressionCount": 1,
"regressions": [{ "url": "https://staging.myapp.com/about", "variantName": "iPhone 12", "diffPercentage": 2.4, "regressionbotSummary": [{ "label": "A", "text": "\"Meet the team\" → \"Meet our team\"" }] }]
}
TOOL> [get_job_summary] jobId: "d5452cb0-6b7a-4186-a0b1-0e23204a31e3", regressionsOnly: true
TOOL RESULT> { "regressionCount": 0, "regressions": [] }
AGENT> Results across all devices:
• /about [Desktop Chrome] — 1.8% of the page
Heading text changed: "Meet the team" → "Meet our team"
• /about [iPhone 12] — 2.4% of the page
The same heading edit as on desktop.
AGENT> • All tablet pages matched baselines.Recover a previous job by listing recent jobs
USER> what was the result of the last job for the myapp project?
TOOL> [list_jobs] project: "myapp", limit: 10
TOOL RESULT> {
"jobs": [
{
"jobId": "6ee84bac-40de-44cc-8dca-4760ab108153",
"project": "myapp",
"status": "APPROVED",
"totalUrls": 6,
"completedCount": 6,
"createdAt": "2026-05-19T10:53:26.000Z",
"finishedAt": "2026-05-19T10:54:14.000Z"
},
{
"jobId": "e69062bb-f140-40e7-a3e8-40f84deadcdb",
"project": "myapp",
"status": "COMPLETED",
"totalUrls": 6,
"completedCount": 6,
"createdAt": "2026-05-17T13:22:01.000Z",
"finishedAt": "2026-05-17T13:22:06.000Z"
}
]
}
AGENT> Most recent: job 6ee84bac — APPROVED, 6 pages tested, finished ~1 hour ago.
AGENT> The job before that is COMPLETED but not yet approved (2 regressions pending).Tip: The agent reads changes first: each entry names the element, both versions of its text and a box in capture pixels, so it can crop currentUrl and baselineUrl to the exact region when it wants to look. The shortened, clickable diffUrl is the link for a person: in a browser it opens the inspect view with every change drawn on both captures. Fetched directly it returns the current capture; there is no separate diff image.
Projects
A project is a named configuration. It locks in your job parameters, such as testOrigin, devices, and paths. The first run_regression_job invocation with a new project name creates the configuration automatically. Subsequent jobs enforce that the parameters match. This protects baseline integrity.
How it works
- Initial job — supply all parameters. RegressionBot creates the project configuration and captures baselines.
- Repeat jobs — omit parameters or supply identical ones to reuse the stored configuration. A partial request is checked on what it sends and filled from the project on what it omits, so naming a project with only
testOriginruns the saved paths, devices, masks andcustomCss. If you pass parameters that differ from the stored configuration, the job is rejected. The error response lists the differing fields. - Shorthand — use
run_from_projectto trigger a repeat job without supplying any parameters. - Update configuration — use
update_projectto update a saved project's configuration. Changing anything that alters a capture resets its baselines. Example:update_project({ name: "my-project", testOrigin: "https://v2.example.com" }) - Check a site on a schedule — as an org admin (with an API key or a signed-in app), the same tool turns a project into an unattended check:
update_project({ name: "my-project", schedule: "daily", baselinePolicy: "rolling" }). It then runs without anyone triggering it, and emails your organization's owners when it finds changes or cannot check the site at all. Unlike a capture-affecting update this leaves baselines intact, and the first run starts within the hour rather than a day later. This is what catches changes no deploy caused. - Approve by name — use
approve_projectto approve the most recent completed job for a project. This does not require a job ID. Example:approve_project({ name: "my-project" }) - Live-vs-live jobs — these are always accepted regardless of the stored configuration. Passing
baseOriginskips the configuration check entirely, and nothing is filled from the project either; send every field you want.
Managed CI workflow example
USER> start a regression job for myapp
AGENT> I'll create the project on the initial job and capture baselines.
TOOL> [run_regression_job]
project: "myapp"
testOrigin: "https://www.myapp.com"
devices: ["Desktop Chrome", "iPhone 12"]
paths: [{"path":"/"}, {"path":"/pricing"}, {"path":"/docs"}]
autoApprove: true
TOOL RESULT> { "message": "Job started", "jobId": "a1b2c3d4-..." }
AGENT> Baselines are being captured for 3 pages on desktop and mobile.
AGENT> The configuration is now saved as project "myapp". Future jobs are locked to these parameters.
---
USER> start a regression job for myapp
TOOL> [run_from_project] name: "myapp"
TOOL RESULT> { "message": "Job started", "jobId": "e5f6a7b8-...", "project": "myapp" }
AGENT> Job started using stored config — testOrigin myapp.com, Desktop Chrome + iPhone 12, 3 paths.
---
USER> what projects do I have?
TOOL> [list_projects]
TOOL RESULT> {
"projects": [
{
"name": "myapp",
"testOrigin": "https://www.myapp.com",
"devices": ["Desktop Chrome", "iPhone 12"],
"lastRunAt": "2026-06-02T10:15:00.000Z",
"lastJobId": "e5f6a7b8-..."
}
]
}Intent and the Verdict
RegressionBot answers a question the diff alone cannot: did this run do what the change said it would? Give the run an intent and every changed page comes back with a verdict against it. Give it none and nothing is judged, which every surface says out loud rather than leaving blank.
Give the run an intent
Pass runContext to run_regression_job or run_from_project. The PR title and description, or the commit message, are what people already write; two lines saying what changed and why are enough. A vague intent (“fixes”, “updates”) earns needs_review, not a pass.
A standing intent for scheduled checks
A scheduled run has no PR to draw an intent from, so it was never judged. Give the project one instead: update_project with intent, a line or two saying what the pages are expected to do between checks and what must not change — “Content is edited in the CMS daily; navigation, pricing and layout must not change.” Every scheduled run is judged against it. Runs you start yourself are not — give those a runContext. The same field is on the dashboard's Schedules tab. Setting it does not invalidate baselines.
The two tools name the project differently. run_regression_job takes project; run_from_project takes name. The runContext object is identical in both.
run_regression_job {
"project": "docs",
"runContext": {
"prTitle": "Remove the View All Cards link from the Strata hero",
"prDescription": "Marketing asked for the hero to carry one call to action. Nothing else on the page changes."
}
}
run_from_project {
"name": "docs",
"runContext": { "prTitle": "Remove the View All Cards link from the Strata hero" }
}isNewBaseline: true, no page is compared, and so nothing is judged — intentAssessment.decision will not read pass no matter how good the intent was. Run a second time for a real verdict, or pass autoApprove: true on the first run to prime the baselines deliberately. When the run carries an intent (runContext), auto-approve fires only if every changed page has an AI verdict (a page skipped under aiSummaryThreshold counts as having none); otherwise the run is held for review. Live-vs-live mode (pass baseOrigin) captures both origins every run, so it has no first-run trap.What standing intents cover, and what still needs a look
Under a standing copy intent, a wording change is kept intentional only when the model names that intent by its id (coversIntentId: standing or expected-changes) and the edit is body prose that intent covers. An expected-changes id keeps an edit only when a list entry names the exact page being judged; a named path does not cover a different page that shares the same change pattern. Bare / and “homepage” map to /. A vague entry such as “Some copy changes are expected” covers nothing. A standing sentence that names a page or region (homepage, footer, /, a path) only keeps edits on that page or region; a sentence that names none remains general. Only an intentional verdict is downgraded this way; a model noise or bug is left as the model said. Headings (h1) and call-to-action text are held to a stricter bar than body copy: even when the intent mentions them, an intentional verdict is downgraded to needs_review. A result with no measured edits, and a new page under a standing copy intent, also has an intentional verdict downgraded to review — there is nothing for the guard to check. These rules are accepted for launch.
Judging whether body copy still means the same thing — a cancellation policy inverted, a support address moved — is inherently the model's job. The code does not parse the meaning of a paragraph. A page is never intentional without a model call. A new page (the base returned 404 or 410) goes to the judge with the publish intent, the test page's own title and text, and that the base returned 404. Under a standing copy intent that new page always goes to review. A plain layout move — content that only changed position — is decided noise without a model call, which is how production behaves today. A move or reorder of a link, a button, a form control, any element that contains one, or any element whose current text carries money or a price (a currency symbol or code beside a number, or a rate such as 9/mo), and any move on a risky path (pricing, legal, help, refund, account, settings, faq, contact, returns, …), goes to the judge.
Read the verdict
intentAssessment.decisiononget_job_summaryis the one field a CI step reads:pass,review,fail, ornot_judgedwhen the run carried no intent. The counts beside it explain the decision.verdicton each regression:decision(intentional,bug,noise,needs_review),minConfidence, one sentence ofreasoning, and forintentionalthe words of the intent itcoveredBy, quoted verbatim. An intentional verdict whose quoted words are not in the intent is downgraded toneeds_reviewbefore you see it. So is a page with several edits unless the intent names every one of them: an intended heading change does not make an accidental nav or color change on the same pageintentional, and thereasoningsays which edit was not named.minConfidenceruns from 0 to 1, not 0 to 100. A verdict at0.94is a confident one. Compare it against a fraction:minConfidence < 0.8, never< 80.verdict.basissays what the decision was made from.measured: the exact edits inchanges.described: only a generated sentence about the picture, because the DOM engine could not run on that page. Treat a described verdict as weaker evidence. The field is optional and is absent on some pages, so read it with a default rather than assuming it is there — its absence tells you nothing about which of the two applied.- A changed page can carry no
verdictobject at all. That page was never assessed. Treat it asneeds_review; it is never a pass. In code, branch on the object's presence before you readdecisionoff it:const cleared = (page) => page.verdict?.decision === 'intentional' || page.verdict?.decision === 'noise'; // no verdict → cleared is false → the page waits for a person
Act on it
A verdict is a recommendation. Approving and rejecting remain the only actions that move a baseline. After a review or fail, approve only the pages the verdict cleared and leave the rest for a person:
approve_job { "jobId": "…", "where": { "decision": ["intentional", "noise"] } }
→ {
"message": "Job approved",
"approvedCount": 3,
"failedCount": 0,
"skippedCount": 2
}skippedCount is returned only when you pass where. It counts the changed pages left pending because their verdict was outside your list, or because they had no verdict at all. The same three forms over REST are POST /approve, which reports the counts under different names — approvedUrlsCount, skippedUrlsCount and conflictedUrls. A live-vs-live run under a name with no saved project has no stored baseline to advance: approving it records the decision, copies nothing, and returns warning: "NO_BASELINE". To keep a baseline, run the project without baseOrigin. A quick check returns the same warning when you approve the whole job, and marks no page: approve its pages one at a time, or with where.
To act on one page, pass url, variantName and action; add a note when your action disagrees with the verdict. Every approve or reject is recorded on the page as triageStatus (PENDING, APPROVING, APPROVED or REJECTED), triagedAt, triagedBy and triagedVerdict, the verdict as it stood when the decision was made. A note you send reads back on the page as triageNote.
Reading a Job Summary
Call get_job_summary once get_job_status reports readyForSummary: true. The job carries regressionCount (changed pages, not counting new baselines), newBaselineCount, runSummary (an AI reading of the whole run as one paragraph, the same one the scheduled-run email opens with, or null; the changes are the record), runSummaryPoints (the same summary as a list, one sentence per change, most pages first: list these when reporting several changes) pathCoverage (the paths checked; their source: paths, sitemap or fallback; how many the sitemap listed; whether the run was partial and why; the summary text says “Checked N of M paths” and lists them) and, on runs with an intent, intentAssessment. If newBaselineCount equals the number of pages tested, nothing was compared. On a quick check the job also carries fidelity: "low" and scopeNote, the sentence saying layout, color and images were not checked: quote it with a result that found nothing, so “no content changes” is not reported as “nothing changed”. changeClusters lists each edit that appears on two or more changed pages once (id, the shared change, pages with a diffUrl each, and pageVerdicts, a count of how the pages carrying it were judged); it is empty when no edit repeats, and each regression's own changes stays the full record. Each entry in regressions carries the fields below.
| Field | Meaning |
|---|---|
changes | The exact edits, computed from the two documents: the answer to "what changed". Each entry has type (text-edit, insert, delete, move, move-with-edit, style-only, image-change, attribute-edit, sticky-reposition, font-failed, and the metadata types meta-edit, meta-insert, meta-delete, schema-edit, schema-insert, schema-delete), element (the tag, or a metadata field such as title, meta[description], link[rel=canonical], ld+json[FAQPage]) and whichever of before, after, style and attributes (a changed link target, alt text, aria-label and the like, as [before, after]) apply. On an image-change, before and after are the two image file names. A change with no words of its own (a style, attribute or image change) carries label: what a reader calls the element, such as a button's text or an image's alt text. An edit where only a date or time changed carries valueOnly: "date" and does not make the page changed. Parts of the page that changed on their own while it was captured (a carousel, a counter) are never listed. On results from before September 28, 2026, changes can be absent because the DOM engine could not run on the page, which is not the same as nothing having changed. |
box / boxBefore | On each non-metadata entry: where the element is now, in capture pixels, and where it was (present only when its position or size differs; subtract for the move vector, compare w/h for a resize). Metadata entries carry no box because they paint nothing, so filter on box before assuming one. Combine box with currentUrl to crop the region; filter on box.y to act only above the fold. |
collapsed | true when the change sits inside a closed <details>: in the document but painted in neither capture, so it has no box. Report it as "inside a collapsed section". |
changed | Whether the page counts as a change: an element, its text, a compared style, an image or a reader-facing attribute changed (contentChanged), or the page's metadata did (metadataChanged). Parts that changed on their own while the page was captured, and edits to dates alone, do not count. Read this rather than thresholding diffPercentage. |
contentChanged | Present and true when the page's content changed: anything in changes other than metadata. |
metadataChanged | Present and true when the head or structured data changed while nothing visible moved: a canonical rewritten, a title edited, a JSON-LD block dropped. Nothing shows in the images; read changes. Absent on a page whose baseline predates metadata recording, which is silence rather than "no change". |
visualMatchScore | Deprecated. 100 minus diffPercentage; it no longer measures how alike two pictures look. Kept for existing callers; read changed and changes instead. The summary's overallScore is deprecated the same way. |
diffPercentage | Share of the page, in percent, covered by the elements that changed (the union of their boxes). It says how much of the page changed, not whether the change matters, so do not threshold on it. Results from before September 28, 2026 (kept 30 days) were compared by pixels; on those, this and visualMatchScore are pixel measures. |
regressionbotSummary | Prose context: an array of {label, text}, where label is the region letter, or empty for the one-line overview or a whole-page change. Each region line is written from the DOM and quotes the page's own text. Jobs from before v2.1 carry a plain string. Use it only where changes is absent. |
domAssistSkipReason | Only on results from before September 28, 2026, when pages were compared by pixels and the DOM could not be read for this one. On such a page, the absence of a structural finding is not evidence there was none. Current results never carry it: a page whose DOM cannot be read ends in ERROR. |
isNewBaseline | The page was captured for the first time and compared with nothing. When every page is new on an established project, the likelier cause is invalidated baselines, not a first run: check the project's baselineInvalidatedAt. |
diffUrl, baselineUrl, currentUrl | diffUrl is the link to give a person: in a browser it opens the inspect view with every change drawn on both captures; fetched directly it returns the current capture, not a diff image. baselineUrl is the reference capture (the stored baseline, or the baseOrigin capture in live-vs-live) and currentUrl the new one. All are pre-signed, need no auth and expire after an hour. |
verdict | Only on runs with an intent: decision (intentional, bug, noise, needs_review), minConfidence (0 to 1), basis (measured from the DOM edits, or described from a picture description, weaker), reasoning, and for intentional pages coveredBy, the words of the intent that name the change. See Intent and the Verdict above. |
triageStatus and friends | triageStatus, triagedAt, triagedBy, triagedVerdict and triageNote: a person's Approve or Reject on the page, and what the verdict said when they clicked. |
Job records, images and share links are kept for 30 days, then deleted. Baselines never expire. For the traps that cost the most time, see gated environments and baseline invalidation.
Available Tools
Once connected, your agent has access to the following tools. The MCP server provides instructions automatically. This helps your agent understand the workflow without any additional prompting.
| Tool | What it does |
|---|---|
| run_regression_job | Start a visual regression job. Accepts explicit paths, a sitemapUrl to crawl, or glob scans to filter a sitemap. Supports multiple devices, element masks, an optional baseOrigin for live-vs-live mode comparisons, and an optional runContext object containing developer intent (e.g. prDescription, gitCommitMessage) to inform the AI verdict. Pass customCss to inject CSS that hides dynamic widgets or repositions a fixed element that renders somewhere unhelpful at rest (max 4096 chars). Pass fidelity: "low" with baseOrigin for a quick check: content only, no screenshots, a few seconds a page. |
| get_job_status | Report progress, optionally waiting. Pass waitSeconds: 25 and the call stays open until the job settles or 25 seconds pass, so an agent calls it a handful of times instead of polling. Wait on readyForSummary: true once the job has finished and its summaries are written, which is when get_job_summary gives the final answer. Also returns isComplete (captures and comparisons done; summaries may still be running), status, summaryStatus, progress, executionTime and any error. A finished job ends in one of four statuses: COMPLETED, APPROVED (every change approved, including automatically on a rolling project), RESOLVED (every change decided, at least one rejected) or FAILED. Waiting on COMPLETED alone never finishes for the other three. |
| get_job_summary | Get full results once the job is complete. Returns summaryStatus alongside results. If the status is 'COMPLETE', regressions include the AI-written regressionbotSummary and verdict fields, and the job includes the top-level intentAssessment for CI gating. Each regression also includes changes — the exact edits the engine computed, each naming the element, both versions of its text, and where it sits in the capture — plus changed, visualMatchScore, and shortened screenshot redirect URLs. Read changes before the prose: it is measured, so it carries no confidence score, and it is what lets an agent quote exactly what moved. Pass regressionsOnly: true to filter out matching pages. |
| list_jobs | List recent jobs ordered by most recent first. Filter by project or set a limit. Useful for recovering a jobId or checking the status of recent jobs without leaving the agent session. |
| approve_job | Promote current screenshots to baselines. This is permanent. Existing baselines are overwritten. Three forms: { jobId } approves every page; { jobId, where: { decision: […] } } approves only the changed pages whose verdict.decision is in the list; { jobId, url, variantName, action, note } approves or rejects one page. Only call after reviewing regressions in get_job_summary. |
| verify_change | Check a change did what it said: compares testOrigin against baseOrigin in one live-vs-live run, judged against your changeDescription. Read intentAssessment.decision from get_job_summary. Omit paths to check the sitemap (the project's stored sitemapUrl, else testOrigin/sitemap.xml, up to 100 pages). If no sitemap can be read, only the home page is checked and the run is marked partial: its intentAssessment.decision reads review, never pass. |
| run_from_project | Run a job using a saved project config. Identifies the project by name, not project — that is the one parameter difference from run_regression_job. No need to re-supply testOrigin, devices, or paths. Ideal for repeat CI jobs once a project is established. Accepts optional autoApprove, runContext and fidelity, which overrides the project's for this run. |
| get_project | Retrieve the stored configuration for a named project. Returns testOrigin, devices, paths, scans, and job metadata. |
| list_projects | List saved project configs for your organization. Returns name, testOrigin, devices, schedule, baseline state and last job info for each — including nextRunComparesAgainstBaseline, which answers whether a run now would detect regressions or re-capture baselines. Live-vs-live runs store no config, so a project used only that way appears in list_jobs but not here. |
| update_project | Update a saved project's configuration and reset its baselines. Pass any subset of testOrigin, devices, paths, masks, customCss, etc. Also where unattended checks are turned on: schedule (daily, weekly) alongside baselinePolicy: "rolling" — see Scheduled Checks. A schedule can only be set with an API key, not from an app connected by sign-in. Changing what a capture looks like — origin, paths, devices, masks, custom CSS, credentials — invalidates baselines and the next job re-captures them. Schedule, policy, concurrency, AI options and fidelity do not. fidelity: "low" makes every run of the project a quick check (it needs the project's baseOrigin); "high" turns it off. |
| approve_project | Approve the most recent completed job for a project, promoting its screenshots to baselines. No job ID required. Ideal for CI workflows where the approval step is executed separately from the regression job check. A quick check stores no baseline, so this marks nothing on one; approve its pages with approve_job and where. |