Skip to main content
Glama

Screenshot browser tab

browser_screenshot
Read-onlyIdempotent

Capture a background browser tab as an image without switching tabs or raising windows, enabling visual checks of rendered content that snapshots and text reads cannot describe.

Instructions

See one of the agent's tabs as an image while it stays in the background: the visible part of the page as Chrome renders it for that tab alone, frames included (an embedded chat, a payment form, a canvas or video). The tab is not selected, its window is not raised and the screen is not captured, so the user keeps working in their own tab; never bring a tab to front to look at it. Use it to check a result or to see what browser_snapshot and browser_read cannot describe. The result text gives the page's size in CSS pixels and how to turn an image pixel into browser_click x and y. Read-only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tab_id": "<tab_id>"
    },
    "name": "browser_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoImage encoding (default png). jpeg is smaller.
tab_idYestab_id of one of the agent's tabs, from browser_open_tab or browser_list_tabs
qualityNoJPEG quality from 1 to 100 (default 55). Ignored for png. Raise it when small text must stay sharp.
max_widthNoDownscale the image to this width in pixels (default 1400). Lower it to save tokens.
session_idNoStable task or thread ID. Pass the same value on every browser call for this task. Different IDs isolate tabs and cleanup within one MCP process. Omit for the default process session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.14.0

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, so safety is covered; the description still adds genuine context beyond them: the tab is not selected, its window is not raised, the screen is not captured, and the user keeps working. The only deduction is that the closing 'Read-only' sentence merely restates annotations rather than adding new behavior.

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?

Front-loads the core capability, then the non-intrusive behavior, then the alternative-routing sentence, then return semantics. Dense but every sentence carries distinct information; no filler.

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?

No output schema exists, and the description compensates by explaining that the result text reports page size in CSS pixels and how to map image pixels to browser_click x/y — exactly the missing information an agent needs to act on the screenshot.

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 format, quality, max_width, session_id and tab_id are all already documented; the description adds no parameter-level detail (e.g. no guidance on max_width tradeoffs) beyond what the schema provides. Baseline 3 applies when the schema carries the parameter burden.

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?

Names a specific verb and resource (capture one agent tab as an image) and immediately constrains scope: 'the visible part of the page as Chrome renders it for that tab alone, frames included.' It explicitly separates itself from browser_snapshot and browser_read, and the background-tab framing distinguishes it from the sibling 'screenshot' meaning.

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 a positive trigger ('check a result or see what browser_snapshot and browser_read cannot describe') plus an explicit prohibition ('never bring a tab to front to look at it'), which is the main misuse an agent would otherwise commit instead of calling this tool.

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