codeloop_update_baseline
Accept the current screenshots as the new visual regression baseline.
When to use codeloop_update_baseline
Use `codeloop_update_baseline` when your AI agent needs to accept the current screenshots as the new visual regression baseline.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| run_id | string | no | Run id whose screenshots become the new baseline. |
| project_dir | string | no | Project root. |
What you get back
List of screenshots promoted to baseline.
FAQ
What does codeloop_update_baseline do?
Accept the current screenshots as the new visual regression baseline.
When should an AI agent call codeloop_update_baseline?
Use `codeloop_update_baseline` when your AI agent needs to accept the current screenshots as the new visual regression baseline.
What does codeloop_update_baseline return?
List of screenshots promoted to baseline.
Is codeloop_update_baseline part of the CodeLoop MCP server?
Yes. CodeLoop ships as an MCP server installed via `npx codeloop init`. Cursor and Claude Code call it automatically once the User Rule (Cursor) or CLAUDE.md (Claude Code) is in place.