Skip to main content
Glama

Screenshot a shared tab

browser_screenshot
Read-only

Capture the visible viewport or a CSS-pixel rect of a shared browser tab, returning a bounded JPEG/PNG image and optional local file path for visual inspection.

Instructions

Capture the visible viewport (or a CSS-pixel rect) of a shared tab and return the image so you can look at it. Output is bounded (longest side <= 1600 px, small JPEG). The result also names a local image file: if you cannot see the inline image, open that file with your image viewer (for example view_image) and answer from what you actually see, never from guesses. The screenshot is a short-lived artifact (artifact_id) that expires when sharing ends. Needs the user to have allowed screenshots.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rectNoPage-relative CSS pixels. Omit for the current viewport.
formatNoDefault jpeg (smaller). png is lossless but may be too large to show inline.
context_idYesContext id from browser_contexts, for example tab:12.
local_fileNoAlso return the path of the stored image file so a host with its own image viewer can open it. Default true: some hosts do not pass inline MCP images to the model, but can open a local file.
request_idNoStable id for this logical action. Reuse the SAME id to retry or reconcile it; never reuse it for a different action. Omit to have one generated and returned.
include_imageNoDefault true. Set false to only get the artifact metadata.
browser_instance_idNoOnly needed when several Firefox profiles are connected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations (which only declare read-only, non-destructive, non-open-world): it discloses output bounds (longest side <= 1600 px, small JPEG), that the image is a short-lived artifact whose artifact_id expires when sharing ends, that the result includes a local file path for hosts that cannot render inline images, and that a user permission grant is required. No contradiction with readOnlyHint=true or destructiveHint=false.

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-loads the core action and its scope in the first sentence, then adds constraints, fallback behavior and lifecycle in a logical order. Dense but each sentence carries operational information; only 'so you can look at it' is mild padding.

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

Completeness5/5

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

With no output schema and a 7-parameter nested schema, the description carries the return-value burden and does it: what image comes back, how large, where the local file is, how long the artifact lives, and what permission is needed before calling. Nothing an agent needs to interpret the response is missing.

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 baseline is 3; the schema already explains rect coordinates (page-relative CSS pixels), the jpeg-vs-png tradeoff, local_file, include_image and browser_instance_id. The description's mentions of rect and JPEG mostly restate that, and the new detail (1600 px bound) concerns output rather than any parameter.

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?

Specific verb ('Capture') plus resource ('visible viewport (or a CSS-pixel rect) of a shared tab') and the purpose of the output ('return the image so you can look at it'). This distinguishes it from DOM-oriented siblings such as browser_snapshot, which would not return a rendered image.

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 a clear usage context (visual inspection when inline image is unavailable) and a concrete fallback path ('open that file with your image viewer (for example view_image)'), plus a prerequisite ('Needs the user to have allowed screenshots'). It does not explicitly contrast itself with browser_snapshot or other observation tools, so it stops short of naming when-not-to-use.

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