For AI agents and LLMs: a machine-readable index is available at llms.txt. A plain-Markdown version of any documentation page is available by appending .md to its URL.
Skip to main content

Getting Started with SmartUI MCP Tool


SmartUI MCP Tool is part of the TestMu AI MCP Server. It lets you debug visual regressions from SmartUI builds: find the screenshots that changed, summarize each comparison, and approve or reject the result.

How Does It Work?​


The SmartUI MCP Tool reads your SmartUI projects, builds and comparisons, and can act on them: approve or reject screenshots, merge baselines and upload screenshots as a new build. A typical flow:

  1. List your projects and builds with smartui_list_projects and smartui_list_builds.
  2. Check a build with smartui_get_build_verdict, or list its screenshots with smartui_list_comparisons.
  3. Summarize one comparison with smartui_analyze_comparison and its comparison_id. Pass include_assets=inline to attach the baseline, current and compared images so your AI client can look at them and describe what changed.
  4. Approve or reject a screenshot by its ss_id.

Available Tools​


The SmartUI MCP Tool provides 13 tools.

ToolWhat it doesAccess
smartui_list_projectsList the SmartUI visual testing projects in the TestMu AI account: project_id, name, platform, project_type, approver, build_count and latest_build_status for each.Read-only
smartui_get_projectGet one SmartUI project with its settings: baseline_branch, approvers, smart_baseline, auto_approval_branch, overwrite_screenshot and project_category, alongside platform and project_type.Read-only
smartui_list_buildsList the builds in a SmartUI project, newest first: build_id, number, name, status, branch, baseline flag, commit and screenshot count.Read-only
smartui_get_buildGet one SmartUI build by build_id or exact build_name: status, branch, baseline flag, commit and screenshot count.Read-only
smartui_get_build_verdictGets a pass or fail verdict for a SmartUI build, for use as a CI gate.Read-only
smartui_list_comparisonsLists the screenshots in a SmartUI build with their comparison against the baseline: mismatch percentage, status and image URLs.Read-only
smartui_get_comparisonGet one SmartUI comparison: mismatch %, status, and the baseline, current and compared image URLs, labelled by role.Read-only
smartui_analyze_comparisonSummarizes one SmartUI comparison: mismatch percentage, a mismatch band, status and the baseline, current and compared images.Read-only
smartui_upload_screenshotsUploads PNG or JPEG screenshots to a SmartUI project as a new build.Changes data (destructive)
smartui_approve_screenshotApprove screenshots in a SmartUI build.Changes data (destructive)
smartui_reject_screenshotReject screenshots in a SmartUI build.Changes data (destructive)
smartui_merge_branch_baselineMerge the latest approved build of one branch into the latest approved build of another branch in the same SmartUI project, creating a build named merged-branch/<source>-<target>-<id> on the target branch.Changes data (destructive)
smartui_merge_build_baselineMerges one SmartUI build into another in the same project and marks the result as the project baseline. This cannot be undone through the MCP server.Changes data (destructive)

Access shows what a tool can do to your account: Read-only tools only read data; Changes data tools create or edit something; destructive tools overwrite, delete, stop, approve, merge, spend credits or place calls, so your AI client may ask you to confirm before it runs them.

How to Invoke​


Once your MCP client is connected, use natural language to interact with the SmartUI tool. Example prompts:

  • "Did the latest SmartUI build of my Checkout project pass?"
  • "Which screenshots changed in build <build name> and by how much?"
  • "Analyze comparison <comparison_id> and show me the images."
  • "Approve the header screenshot in that build."

Your AI client will route the request to the appropriate tool.

Error Handling​


If a project, build or comparison id is wrong, or the comparison has no images yet, the tool returns a plain message saying what is missing. Use the list tools to find the right id and retry.

Help and Support

Related Articles