Skip to main content
Glama

Capture visible tab screenshot

browser_screenshot
Read-only

Capture the visible viewport of a controlled Chrome tab to inspect page state, returning the image directly or saving it to a specified local path.

Instructions

Capture a screenshot of the visible viewport of a controlled tab. Returns the image directly in the MCP response and optionally saves it to savePath.

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
tabIdNoControlled tab id (defaults to active controlled tab).
formatNoImage format (default 'png').
qualityNoJPEG quality 10-100 (ignored for png).
savePathNoOptional local file path to write the captured image.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover read-only and closed-world safety, and the description adds genuinely new behavior: the image is returned inline in the MCP response and may additionally be persisted via savePath. One minor tension is left unaddressed — writing to savePath is a filesystem side effect while readOnlyHint=true, and the description does not clarify that the annotation applies to browser state only.

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?

Two short sentences, front-loaded with the action and scope, followed by return behavior. No filler and nothing redundant.

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?

With no output schema, the description correctly explains what comes back (an inline image) and the optional file write, which is the key missing piece otherwise. It is nearly complete for a simple capture tool; only the interaction between saving and the read-only profile is left implicit.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents tabId, format, quality and savePath in detail. The description only restates savePath's optional-save behavior, adding little semantics beyond the structured fields; the baseline 3 applies.

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 a screenshot') and narrows scope to 'the visible viewport of a controlled tab', which tells an agent this is not a full-page capture. It does not name or distinguish itself from the similarly-purposed sibling browser_snapshot, so the differentiation is only partial.

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 when-to-use or when-not-to-use guidance; the description never says to prefer browser_snapshot for DOM structure or browser_get_text for content. The only implied guidance is the 'visible viewport' scope constraint, which an agent must infer on its own.

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