Skip to main content
Glama

browser_screenshot

Captures the visible area of the current Chrome tab as a base64 PNG or saves it to a specified path. Use it to inspect on-screen content and get viewport details needed for coordinate-based clicks.

Instructions

Take a screenshot of the visible area of the current tab. Returns base64 PNG, or saves to disk if path is provided. The image is in device pixels; when Chrome reports them in time, the answer also gives the CSS viewport size and devicePixelRatio, which browser_click_xy coordinates need. Chrome stays where it is: if its window is covered by other windows, there is no picture and the answer is error "window-covered".

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
pathNoFile path inside the working directory to save the screenshot to (e.g. screenshots/page.png). It must end in .png (the screenshot is PNG data) and stay inside the working directory (also through links), and an existing file is not replaced unless overwrite is true; all of it is checked before the screenshot is taken.
overwriteNoReplace an existing image file at path (default: false)
partitionNoRun this call in a partition from browser_partition (an id like "p1"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.
bring_to_frontNoRaise Chrome in front of the user if its window is covered, and leave it there. Takes the user's screen: only after the user agreed (browser_ask_user). Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.33.0
    • addedInput schema / properties / overwrite
      Added value: +{
      +  "description": "Replace an existing image file at path (default: false)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / partition
      Added value: +{
      +  "description": "Run this call in a partition from browser_partition (an id like \"p1\"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.",
      +  "type": "string"
      +}
    • changedInput schema / properties / path / description
      Previous value: -"File path to save the screenshot to (e.g. /path/to/screenshot.png)"New value: +"File path inside the working directory to save the screenshot to (e.g. screenshots/page.png). It must end in .png (the screenshot is PNG data) and stay inside the working directory (also through links), and an existing file is not replaced unless overwrite is true; all of it is checked before the screenshot is taken."
  2. Changed1 schema field changedv1.30.2
    • addedInput schema / properties / bring_to_front
      Added value: +{
      +  "description": "Raise Chrome in front of the user if its window is covered, and leave it there. Takes the user's screen: only after the user agreed (browser_ask_user). Default false.",
      +  "type": "boolean"
      +}
  3. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the behavioral burden and does well: it discloses the return format, disk-saving behavior, device-pixel semantics, optional CSS viewport/devicePixelRatio reporting, and the specific "window-covered" failure mode. It stops short of explicitly declaring read-only behavior or permission expectations, so it is strong but not exhaustive.

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?

The description is front-loaded with the tool's purpose, then adds return format, coordinate semantics, and failure behavior in a compact sequence. Every sentence adds actionable information, with no filler or redundancy.

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?

Given the absence of annotations and an output schema, the description covers what an agent needs: what is captured, how results are returned, what the pixel dimensions mean, and the key failure condition. Remaining details such as overwrite and partition behavior are fully covered by the input schema.

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 defines path handling, overwrite, partition, and bring_to_front in detail. The description adds useful cross-tool context about device pixels and browser_click_xy but does not materially extend the meaning of any individual parameter beyond what the schema provides.

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 states a specific verb and resource: take a screenshot of the visible area of the current tab. It also distinguishes the output modes (base64 PNG vs saved to disk) and positions the result relative to browser_click_xy coordinates, so an agent can identify the tool without opening the schema.

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

Usage Guidelines3/5

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

Usage is mostly implied: the description explains what a screenshot captures and how its pixel data relates to browser_click_xy, but it does not explicitly say when to choose this over alternatives such as browser_get_page_content. The window-covered failure is useful context, yet there is no direct when-to-use or when-not-to-use guidance.

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