Skip to main content
Glama

Screenshot with numbered click targets

screenshot_marked

Captures a PNG viewport screenshot with numbered interactive targets and a ref/role/name/rect map, enabling agents to click mapped elements accurately without page overlays.

Instructions

Return a PNG viewport screenshot with numbered main-frame interactive targets plus number-to-ref/role/name/rect mapping in CSS pixels. Click a mapped ref with computer. Reports excluded child frames; their controls are not mislabeled with main-frame coordinates. Rejects document/viewport/layout drift during capture. Uses CDP/canvas, leaves no page overlays and does not activate tabs.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tabId": "<tabId>"
    },
    "name": "screenshot_marked"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdYes
maxTargetsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.24.1

TDQS

A4.1/5.0
Behavior5/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 so: it discloses excluded child frames and that their controls are not mislabeled with main-frame coordinates, that capture rejects document/viewport/layout drift, that it uses CDP/canvas, that it leaves no overlays, and that it does not activate tabs. These are exactly the non-obvious behaviors (non-invasiveness, failure modes, frame handling) an agent needs before calling it.

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 the return value, then behavior, then caveats; every clause carries information and there is no filler. The telegraphic phrasing ("Rejects document/viewport/layout drift during capture") trades readability for density, which slightly hurts first-pass parsing.

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?

There is no output schema, and the description compensates by describing the returned PNG and the accompanying CSS-pixel mapping, plus the frame-exclusion caveat. The remaining gap is input-side: nothing explains tabId or how maxTargets truncates the target set, which matters for a tool whose numbering is its core contract.

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

Parameters2/5

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

Schema description coverage is 0% and neither parameter is addressed: 'tabId' is never explained, and 'maxTargets' (1-100) is unmentioned even though it governs how many targets appear and therefore whether the numbering is truncated. The description says targets are numbered and mapped, but gives no meaning to the inputs beyond what the bare schema types convey.

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 concrete verb and output: a PNG viewport screenshot with numbered main-frame interactive targets plus a number-to-ref/role/name/rect mapping in CSS pixels. That is specific enough to separate it from the plain 'screenshot' sibling, and it names 'computer' as the consumer of the refs, so the agent can tell what this tool produces and what to do next.

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?

"Click a mapped ref with computer" gives a clear workflow cue: use this when you need clickable targets rather than a plain image, then hand the ref to the computer tool. There is no explicit when-not or a named contrast to the plain 'screenshot' sibling, so the routing is implied rather than spelled out.

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