Skip to main content
Glama

UI 截图对比

ui_diff_check

Compare two UI screenshots to detect visual regressions and implementation differences. Lists each discrepancy for manual review.

Instructions

对比两张 UI 截图(A 基准 / B 对照),逐条列出视觉与实现差异及可能的回归。做视觉回归/前后对比时使用。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
image_aYes基准图 A:路径/URL/data URI
image_bYes对照图 B:路径/URL/data URI
focusNo重点关注的区域/方面
questionNo具体问题或额外要求
detail_levelNo细节级别:overview=单次快速;normal/fine/auto 触发由粗到细的自动缩放(auto 为默认,足够清晰则早退)
regionNo可选:手动指定关注区域,命名如 'top-right' 或归一化 bbox 'x,y,w,h'(0~1)
thinkingNo是否开启视觉模型深度推理(默认按工具/后端策略)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
markdownYes人类可读的结构化 markdown 正文(与 content 一致)
confidenceNo模型对结果的置信度
roundsYes实际经历的视觉调用轮数
regionsNo缩放走过的区域轨迹(归一化 bbox)
warningsYes降级/截断/不确定等告警
providerYes
modelYes
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description bears full responsibility for behavioral disclosure. It only states that the tool '逐条列出视觉与实现差异及可能的回归' (lists differences and regressions) but omits any details about how images are processed, stored, or whether the operation has side effects. This lack of transparency is a significant gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, focused sentence that conveys the core purpose and usage context. It is concise and front-loaded, but could potentially include a bit more detail without being verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 7 parameters, a required pair, and an output schema, the description is minimal. It relies heavily on the schema for parameter details but does not elaborate on output format or typical scenarios. This is adequate but not thorough.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage, the schema already documents all 7 parameters. The description does not add any additional meaning or context beyond what the schema provides, so a baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: comparing two UI screenshots to list visual differences and possible regressions. The title 'UI 截图对比' and the phrase '做视觉回归/前后对比时使用' explicitly indicate its use for visual regression or before/after comparison. This distinctively separates it from sibling tools like image_analysis or diagnose_error_screenshot.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context by stating '做视觉回归/前后对比时使用' (use for visual regression/before-after comparison). However, it does not explicitly mention when not to use the tool or suggest specific alternatives, leaving some room for interpretation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/Pelican0126/vision-mcp'

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