viewport_compare_screenshot
Compare baseline and candidate viewport screenshots to check visual similarity. Returns a similarity score and metadata, using a pass threshold to validate if the candidate matches the baseline.
Instructions
Compare two workspace-local viewport screenshot artifacts.
Args: baseline_path: Workspace-local baseline PNG path candidate_path: Workspace-local candidate PNG path pass_threshold: Similarity threshold, 0-1
Returns: JSON string with similarity and artifact metadata.
KB: see knowledge_base/32_AGENT_PLAYABLE_SLICE_RECIPE.md#overview Example: viewport_compare_screenshot(baseline_path="/Game/MCP_Test/Example", candidate_path="/Game/MCP_Test/Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baseline_path | Yes | ||
| candidate_path | Yes | ||
| pass_threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |