Skip to main content
Glama

compare_frames

Compare screenshots at two frames to detect pixel differences for visual regression testing. Reports changed pixel count, percentage, and altered screen regions.

Instructions

Compare screenshots at two frames and report pixel differences.

Captures the screen as color grids at two frames and computes a diff. Returns changed pixel count, percentage, and which screen regions changed. Use this for visual regression testing.

Args: script_path: Absolute path to the .py script to run. frame_a: First frame number (default: 1). frame_b: Second frame number (default: 30). timeout: Maximum seconds to wait for the script (default: 15).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
script_pathYes
frame_aNo
frame_bNo
timeoutNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kitao/pyxel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server