Skip to main content
Glama

browser_screenshot

Capture the shared browser tab as a viewport, element, or full-page screenshot, optionally annotating interactive element refs for reliable clicking and hovering.

Instructions

Screenshot the shared tab: the viewport (default), one element, or the full page. Viewport images are in CSS pixels, so x/y read from them work with browser_click/browser_hover. Set annotate=true to draw every snapshot ref (e.g. "e12") on the elements it belongs to; the matching snapshot is returned too.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "browser_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoElement ref to capture
annotateNoLabel interactive elements with their refs (viewport only)
fullPageNoCapture the whole page. It visibly resizes and scrolls the live page, so only use it when the user asks for it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.0.15
    • addedInput schema / properties / fullPage / description
      Added value: +"Capture the whole page. It visibly resizes and scrolls the live page, so only use it when the user asks for it"
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and largely meets it: it discloses the default mode, the coordinate system (CSS pixels) and its downstream compatibility, and the important side effect that fullPage 'visibly resizes and scrolls the live page'. It also reveals a non-obvious return behavior (annotate also returns the matching snapshot). It stops short of saying the result is image content or whether multiple images come back.

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?

Three sentences, no filler, with the default mode front-loaded and then progressively narrower cases. Every clause carries information an agent needs — mode selection, coordinate semantics, and side effects.

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?

Given no annotations and no output schema, the description covers the essential behavioral surface: default behavior, destructive-ish side effect of fullPage, and the annotate pairing with snapshot refs. The remaining gap is the shape of the return value (image payload, one vs. two images), which no structured field covers.

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 the baseline is 3, but the description adds meaning beyond the schema: it explains what annotate actually draws (every snapshot ref on the element it belongs to) and that a matching snapshot is bundled in the response. It restates the fullPage side effect already present in the schema and says nothing extra about 'ref' beyond the schema's 'Element ref to capture'.

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 ('Screenshot the shared tab') and enumerates the three capture modes: viewport (default), one element, or full page. It is clear what the tool does, though it never names or contrasts with the close sibling browser_snapshot, leaving the agent to infer the distinction.

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 guidance for two of three modes: fullPage is explicitly conditioned ('only use it when the user asks for it') with a stated reason, and annotate=true is described as the trigger for ref overlays. It also explains that viewport coordinates are compatible with browser_click/browser_hover, tying usage to siblings. Missing: explicit routing to browser_snapshot when a DOM/text view is wanted.

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