Skip to main content
Glama

ui_snapshot

Capture an accessibility snapshot of the page or iframe to reveal clickable UI elements with refs and coordinates before interacting. Optionally scope to a selector or frame.

Instructions

抓取页面 aria 快照(mode='ai' + boxes),给 AI 一张"语义之眼"。

官方 Playwright MCP 范式:把 accessibility 树(含 [ref=xx] 引用和 [box=x,y,w,h] 视口坐标)喂给 AI。VTable 本体是 canvas(单元格不进 a11y 树,仍走确定性几何定位), 但工具栏/弹窗/编辑器输入框都在树里 —— 交互前先读快照,再决定点哪个。 selector 非空时只快照该选择器命中的子树。

frame=None → 主页面;frame="active" → 当前激活的 AntD Tab iframe; frame="vtable" → 自动定位含表格的 iframe; 其它值按 iframe name 或 URL 子串匹配(如 "application" / "scm-spo")。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boxesNo
depthNo
frameNo
ai_modeNo
selectorNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries the behavioral burden and does substantial work: it explains that output includes refs and box coordinates, that selector scopes to a subtree, how frame routing works, and that VTable canvas cells are excluded. The only notable omission is the behavior/effect of the depth parameter.

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

Conciseness5/5

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

The description is front-loaded with the core purpose and then uses compact, well-separated paragraphs for VTable caveat, selector behavior, and frame modes. Every sentence adds useful information with no filler or restatement of the schema.

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

Completeness4/5

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

Overall it equips an agent to call the tool correctly in most cases: purpose, output nature, frame semantics, selector scoping, and the canvas limitation are all covered, and an output schema exists. It falls short only on depth and lacks an explicit pointer to sibling vtable tools for canvas-cell access.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate. It adds real semantics for boxes and ai_mode (mode='ai' + boxes), selector (subtree scoping), and frame (None/active/vtable/name-or-URL rules). However, depth receives no explanation, leaving one of five parameters under-specified.

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 opens with '抓取页面 aria 快照(mode='ai' + boxes)' — a specific verb, resource, and mode — and frames the output as a '语义之眼' accessibility tree containing refs and viewport boxes. This clearly distinguishes ui_snapshot from screenshot/overlay siblings by presenting it as an a11y-tree reader.

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?

It gives an explicit when-to-use cue: '交互前先读快照,再决定点哪个' (read snapshot before interacting), and explains that VTable canvas cells are absent from the a11y tree and instead use deterministic geometry. It doesn't explicitly name the alternative vtable_* tools, so it stops short of an explicit routing statement.

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/hooplus1ce/Qa-Automation-MCP'

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