Skip to main content
Glama

Screenshot

browser_screenshot
Read-only

Capture viewport, full-page, or element screenshots from a browser, returning images or saving them to the artifacts directory for visual verification and debugging.

Instructions

Screenshot of the viewport, full page, or one element. Returned as an image and/or saved to the artifacts directory (output.screenshots).

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
nthNo
refNoElement ref from snapshot (preferred)
nameNo
pathNoSave to this path (must be inside allowed roots)
roleNo
textNo
exactNo
labelNo
formatNo
pageIdNo
testIdNo
withinNoScope to a unique container (ref, role+name, label, testId or CSS selector)
sessionNo
fullPageNo
selectorNoCSS (last resort)
placeholderNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description does add value beyond them by disclosing the output mechanism — an image returned and/or written to the artifacts directory under output.screenshots — but it never says what governs which of those happens or what the default format is.

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?

Two short sentences with no padding, and the capture-scope information is front-loaded before the return-behavior detail. The 'and/or' phrasing is slightly loose but the definition is otherwise tight and well ordered.

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

Completeness2/5

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

For a 16-parameter tool with no output schema and only 25% schema coverage, the description is too thin: it omits how element targeting should be composed (ref preferred vs CSS selector as last resort), the format default, and the constraints on the save path. The mention of the artifacts directory is helpful but does not fill the gap.

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 only 25% across 16 parameters, so the description carries a heavy compensation burden. It only loosely maps to fullPage, element targeting (ref/selector) and path; the other parameters (nth, name, role, text, exact, label, format, pageId, testId, session, within, placeholder) get no clarification, and even the viewport/full-page/element distinction is not tied to specific parameter names.

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?

The description states a specific verb and resource ('Screenshot') and enumerates the three capture scopes (viewport, full page, one element), which maps directly onto the fullPage and element-targeting parameters. It does not distinguish itself from the sibling browser_snapshot, which is the most likely confusion point, so it falls short of a 5.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not guidance: nothing tells the agent to prefer this over browser_snapshot for visual capture, or when to save to a path versus return an inline image. The only implied guidance is the choice of capture scope, which the agent must infer from the parameter names.

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