Skip to main content
Glama

screenshot_annotated

Captures an Android screen and overlays numbered red boxes on clickable elements, letting agents tap by index instead of guessing pixel coordinates; use for Canvas, games, or visual checks.

Instructions

【视觉兜底与界面审查工具】获取手机屏幕截图。安全图层/DRM 等限制仍可能导致空白或拒绝。 默认开启 Set-of-Mark (annotate_elements=True),在图上直接标出 [#0], [#1] 红框编号, 看图后无需猜像素坐标,直接调用 tap_element(index=编号) 即可! 注意:日常操作请优先使用 get_ui_tree,仅在 Canvas/地图渲染/游戏或视觉验证时调用本工具。

Input Schema

NameRequiredDescriptionDefault
max_widthNo图片最大宽度(等比缩放以加速传输),默认 720
save_pathNo可选:将截图保存到本地磁盘的绝对路径
annotate_elementsNo是否在截图上自动绘制可点击元素的红色边框与 [#index] 编号(Set-of-Mark)。默认 True

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose a real behavioral constraint: secure layers / DRM can produce a blank image or a refusal. It also documents that annotation is on by default and that optional disk saving exists. Missing detail on whether the image bytes or a path is returned, which matters given there is no output schema.

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?

Front-loaded with purpose, then limitations, then the default/annotation workflow, then the routing note. The exclamation marks and mixed brackets are slightly noisy but every sentence carries distinct information.

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?

For a 3-parameter read tool with no output schema, the description covers the key gaps: DRM failure modes, the default annotation behavior, and the downstream action. Only the return shape (image payload vs. saved path) is left implicit.

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 100%, so baseline is 3, but the description adds meaning the schema does not: it explains why `annotate_elements=True` matters (indices feed directly into `tap_element`) rather than just restating the flag. `max_width` and `save_path` are left to the schema, which is adequate.

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?

States a specific verb and resource ('获取手机屏幕截图') and immediately adds the distinguishing capability: the Set-of-Mark `[#0]`, `[#1]` overlays. It also names `get_ui_tree` as the different sibling, so an agent can tell the two apart without opening a schema.

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

Usage Guidelines5/5

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

Explicit routing: prefer `get_ui_tree` for daily operations, use this only for Canvas / map rendering / games / visual verification. Both the when and the when-not are stated, plus the follow-up action `tap_element(index=编号)`.

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