Skip to main content
Glama

screenshot

Capture a JPEG of the visible browser viewport when layout or visuals matter, so agents can inspect rendering; use text snapshots for lower-cost checks.

Instructions

JPEG of the visible viewport. Use only when layout/visuals matter; snapshot is cheaper.

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": "screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabNoTab id. Default: your own target tab (each agent session gets its own)
browserNochrome, edge, ... (only when several browsers are connected)
qualityNo1-100, default 60
maxWidthNoDefault 1280

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the output format (JPEG) and scopes it to the visible viewport rather than the full page, which is useful. It does not say how the image is returned (inline payload vs. file reference), whether it has side effects on page state, or any size/permission constraints.

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, zero waste, with the output-specification front-loaded before the routing advice. Nothing is repeated from the schema.

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?

No output schema exists, but the description states the return format (JPEG of viewport), which is the main thing an agent needs. For a zero-required-parameter tool with fully documented schema properties this is nearly complete; only the delivery mechanism of the image is unstated.

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% with per-property documentation for tab, browser, quality, and maxWidth, so the schema already does the work. The description adds no meaning beyond it — notably the quality/maxWidth trade-off with image size is left entirely to the schema.

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 the concrete artifact produced ('JPEG of the visible viewport'), which is a specific resource and output format, and implicitly identifies it as the visual-capture tool. It also names the sibling 'snapshot' to contrast with, though it never uses an explicit verb like 'capture' so the action is inferred rather than stated.

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?

Gives an explicit inclusion rule ('use only when layout/visuals matter') and an explicit alternative with the reason to prefer it ('snapshot is cheaper'). An agent can decide between this and snapshot without opening either schema.

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