Skip to main content
Glama

Screenshot

screenshot
Read-only

Captures the visible browser viewport as an image to inspect a page's actual layout when selectors and text fall short. Save full-resolution files or read fine detail with a full-resolution return.

Instructions

Take a screenshot of the visible viewport as an image you can look at directly.

The fastest way to understand a page's actual layout when selectors and text are not enough. Set window_size and device_scale_factor on start_browser first — the default viewport is roughly 800x600, which is why screenshots come out small. The returned image is JPEG quality 60, downscaled to 1024px wide unless full_resolution is set; save_path files keep full resolution and are also published as a resource. Returns the image plus its returned and full dimensions and any saved file.

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 from list_tabs or new_tab to act on, instead of the active tab. The active tab does not change. Omit to use the active tab. Example: 'tab_2'
save_pathNoPath to also write the image to on the server's filesystem, at FULL resolution. The extension picks the format: .png, .gif, and .bmp are saved losslessly, anything else as JPEG. Omit to return the image without writing a file. Example: '/tmp/page.png'
full_resolutionNoReturn the image without downscaling. By default the returned image is capped at 1024px wide to save vision tokens; set true when you need to read fine detail. Example: false

Output Schema

NameRequiredDescriptionDefault
filesNoThe full-resolution file, when save_path was given.
widthYesWidth in pixels of the returned image.
formatYesFormat of the returned image: always 'jpeg'.
heightYesHeight in pixels of the returned image.
summaryYesOne line saying what happened.
downscaledYesWhether the returned image was shrunk to save tokens.
full_widthYesWidth in pixels of the full-resolution capture.
full_heightYesHeight in pixels of the full-resolution capture.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint=false; the description adds the substantive behavioral facts: the returned image is JPEG quality 60 and downscaled to 1024px wide unless full_resolution is set, while save_path files keep full resolution and are also published as a resource. It also discloses the return payload (image plus returned and full dimensions and any saved file) and flags the default viewport size as a cause of poor output.

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-loaded with the core action and the key caveat about viewport size; each sentence carries actionable information such as the JPEG quality, the downscale cap, and the save_path resolution difference. The closing sentence restating the return values is somewhat redundant given an output schema exists.

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?

For a zero-required-parameter read tool with full schema coverage, existing annotations, and an output schema, the description supplies everything an agent needs: when to reach for it, how to configure the browser first, and how output fidelity is traded off. No material gap remains.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns more by tying full_resolution to the 1024px downscale rationale (vision token savings) and by noting that save_path images are additionally published as a resource, a behavior absent from the schema's format-only explanation. The tab parameter is untouched, but it is fully documented in the schema.

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?

States a specific verb and resource ('Take a screenshot of the visible viewport') and immediately scopes it to the case where 'selectors and text are not enough', which implicitly distinguishes it from text/tree extraction siblings. An agent knows exactly what it gets back: an image it can look at directly.

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 condition for use ('fastest way to understand a page's actual layout when selectors and text are not enough') plus practical setup guidance to call start_browser with window_size and device_scale_factor first, otherwise the default ~800x600 viewport yields small images. It stops short of naming an explicit alternative or a when-not to use, so it is clear context without full routing.

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