Skip to content

visual_regression_test

Visual regression testing via screenshot comparison. Captures current state and compares against baseline. Detects unintended visual changes.

Category: Test

Name Type Required Default Description
action string "compare" Action: compare (test), update_baseline (save new), list_baselines, delete_baseline. One of: compare, update_baseline, list_baselines, delete_baseline
name string yes Baseline name (used as filename)
view string "game" One of: game, scene
threshold number 1 Allowed difference percentage (0-100, default: 1.0)
width integer 0
height integer 0

The arguments below are the required ones; add the optional ones you need.

{
"name": "visual_regression_test",
"arguments": {
"name": "…"
}
}

When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "visual_regression_test", "args": { … }}. See SuperSave mode.

Generated from Assets/NanoraUnityMCP/Editor/Tools/Testing/VisualRegressionTestTool.cs (version 1.2.1). The client receives the same schema from tools/list.