Skip to main content
Glama

Screenshot

browser_screenshot
Read-only

Capture a JPEG image of the browser viewport or a single element by ref, so you can verify layout, images, and canvas rendering visually when text output is not enough.

Instructions

Takes a JPEG picture of the viewport, or of one element by ref. Meant for when layout, images or a canvas matter; for everything else the text tools say more for less.

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
refNoRef of one element to picture; leave it out for the whole viewport (e12, f2e7 …), as browser_snapshot or browser_find showed it.
profileNoWhich browser profile (a separate signed-in session) to use. Leave it out for the default one; name another only when the user's task names it. Profiles: default.default

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.0
    • addedInput schema / properties / profile
      Added value: +{
      +  "default": "default",
      +  "description": "Which browser profile (a separate signed-in session) to use. Leave it out for the default one; name another only when the user's task names it. Profiles: default.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changedv1.1.0
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / ref / description
      Previous value: -"One element to capture; the whole screen if omitted"New value: +"Ref of one element to picture; leave it out for the whole viewport (e12, f2e7 …), as browser_snapshot or browser_find showed it."
  3. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish readOnlyHint and openWorldHint, so the safety profile is covered. Beyond that, the description discloses the output format (JPEG) and an implicit cost trade-off ('text tools say more for less'), which is useful behavioral context the annotations do not carry. It stops short of saying how large or expensive the returned image is, or that picture resolution depends on viewport size.

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 compact clauses with zero filler; the primary capability comes first and the guidance follows. Every phrase, including the 'say more for less' comparison, carries decision-relevant information.

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?

For a two-parameter read-only capture tool with no output schema, the description covers purpose, scope, and the main selection trade-off. A minor gap is that it does not say the image is returned as tool output the agent must then interpret, though 'Takes a JPEG picture' implies it.

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 coverage is 100%, so both parameters are already documented, including the ref syntax and profile defaults. The description reinforces the ref concept ('of one element by ref') but adds no new detail about either parameter, so the baseline of 3 applies.

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?

The description gives a specific verb and resource ('Takes a JPEG picture') and bounds the scope to 'the viewport, or of one element by ref'. It also distinguishes this tool from the text-based siblings by saying they 'say more for less', so an agent can choose between them without opening a schema.

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

Usage Guidelines5/5

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

It states both when to use it ('when layout, images or a canvas matter') and when not to (everything else, where the text tools are better). The alternative is identified by category rather than by an individual tool name, but that category maps cleanly onto the text siblings.

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