Skip to main content
Glama

browser_screenshot

Capture viewport, full-page, or specific element screenshots as PNG from an attached Chrome or Edge tab, including CSS mapping for image-to-viewport coordinates.

Instructions

Capture viewport, full_page or one ref/selector element as PNG with image-to-viewport CSS mapping. Element/full_page are exclusive; locator options need selector. Full-page points may need scrolling before input. If background rendering stalls, explicitly activate or use AX/text.

Input Schema

NameRequiredDescriptionDefault
nthNoSelector only: zero-based DOM index, AX tree order for role.
refNo
nameNorole only: exact AX name; empty allowed.
frameNoChild frame: at least one of url/title/path. url/title exact; path=unique nested CSS iframe steps (e.g. ["#frame"]); exclusive with frame_id.
frame_idNoSelector frame; default main.
selectorNoQuery by selector_type; role example: selector="link", name="Claim".
full_pageNo
tab_handleYes
selector_typeNoDefault css. label: exact associated HTML label, whitespace normalized. placeholder: exact attribute.
include_indicatorsNoInclude transient click feedback.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.24.2
    • changedInput schema / properties / frame / description
      Previous value: -"Exact child-frame URL/title or CSS iframe path (e.g. [\"#content_iframe\"]); alternative to frame_id. Each path entry uniquely selects an iframe in the preceding document."New value: +"Child frame: at least one of url/title/path. url/title exact; path=unique nested CSS iframe steps (e.g. [\"#frame\"]); exclusive with frame_id."
    • changedInput schema / properties / frame_id / description
      Previous value: -"Selector scope; defaults to main frame."New value: +"Selector frame; default main."
    • changedInput schema / properties / name / description
      Previous value: -"role only: exact accessible name; may be empty."New value: +"role only: exact AX name; empty allowed."
    • changedInput schema / properties / nth / description
      Previous value: -"Zero-based match index: DOM order, or AX tree order for role."New value: +"Selector only: zero-based DOM index, AX tree order for role."
    • changedInput schema / properties / selector / description
      Previous value: -"CSS/XPath query, HTML label text, exact placeholder or AX role (e.g. selector=\"link\", name=\"Claim\"), according to selector_type."New value: +"Query by selector_type; role example: selector=\"link\", name=\"Claim\"."
    • changedInput schema / properties / selector_type / description
      Previous value: -"Default css. label matches associated HTML labels with whitespace normalized; role uses browser AX semantics."New value: +"Default css. label: exact associated HTML label, whitespace normalized. placeholder: exact attribute."
  2. Changed1 schema field changedv0.24.1
    • changedInput schema / properties / selector / description
      Previous value: -"CSS/XPath query, HTML label text, exact placeholder or AX role, according to selector_type."New value: +"CSS/XPath query, HTML label text, exact placeholder or AX role (e.g. selector=\"link\", name=\"Claim\"), according to selector_type."
  3. First observedv0.24.0

TDQS

A3.9/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 it does disclose non-obvious behavior: output is a PNG with image-to-viewport CSS coordinate mapping, full-page capture may require scrolling before further input, and background rendering can stall. It omits whether the image is returned inline or as a handle/resource, which matters for a no-output-schema tool.

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?

Four tightly packed sentences, mode and constraint information front-loaded, with no filler. Some phrasing is telegraphic ('image-to-viewport CSS mapping', 'Full-page points') and costs a re-read, which keeps it below top marks.

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?

For a 10-parameter tool with a nested frame object, no annotations and no output schema, the description covers modes and constraints but leaves major gaps: where 'ref' values originate, what the nested frame selector does versus frame_id, and how the PNG is delivered. An agent could still invoke it, but not confidently in frame or element-targeting scenarios.

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?

At 70% schema coverage the description contributes real semantics that the schema cannot express: the mutual exclusivity of full_page and element capture, and the rule that locator options (ref/name/nth/frame_id) require selector. Undocumented parameters such as ref and tab_handle are not explained, and the meaning of 'ref' (presumably from browser_snapshot) is left to inference.

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

Purpose4/5

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

States a specific verb and resource ('Capture ... as PNG') and enumerates the three capture modes (viewport, full_page, single ref/selector element), which is far more than a restatement of the name. It only implicitly separates itself from visual/text siblings via the 'use AX/text' fallback, and never names browser_snapshot or browser_read_text.

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?

Gives concrete selection rules: element vs full_page are exclusive, locator options require selector, and stalled background rendering should be handled by activating the tab or switching to AX/text. It lacks an explicit 'use this when you need visual confirmation' framing, but the exclusions and fallback path are clear.

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