Skip to main content
Glama

截图

browser_screenshot
Read-onlyIdempotent

Capture a PNG of the active tab, a specific element, or the full page to review layouts and long documents. Returns the image inline and saves it to disk.

Instructions

Take a PNG screenshot of the active tab, or of a specific element (pass ref — the view is scrolled to it and the image is cropped to its bounding box). Pass fullPage:true to capture the whole document (not just the viewport) — use that when reviewing long pages or comparing layout. Returns the image inline (for vision-capable models) and saves it under ~/.aabrowser/screenshots/.

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
refNoElement ref: screenshot only this element (default: whole viewport)
tabIdNoTab id (default: active tab)
fullPageNoCapture the whole document instead of the viewport (max 8000px tall)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.0

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnly=true, idempotent=true, and destructive=false, so the safety profile is covered. Beyond that, the description adds genuinely new behavior: the view is scrolled to the element before cropping, fullPage is capped at 8000px tall, the image is returned inline for vision-capable models, and a copy is written to ~/.aabrowser/screenshots/ — disclosing an on-disk side effect the annotations do not mention.

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?

Three compact sentences, front-loaded with the primary action, with per-mode guidance folded into parentheticals rather than padded into separate paragraphs. Every clause carries operational information; nothing is redundant with the schema text.

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?

There is no output schema, so the description correctly takes on the burden of explaining the return value (inline image plus saved file path). For a three-optional-parameter read tool, the behavior, destination, and limits are all covered.

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 schema already documents all three parameters, making 3 the baseline. The description still adds meaning beyond it — that ref triggers a scroll-and-crop to the element's bounding box, and that fullPage is bounded at 8000px — so it earns a point above baseline.

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?

The description states a specific verb (take a PNG screenshot) and resource (active tab, specific element, or whole document), and enumerates the three capture modes so an agent can pick one without opening the schema. It does not distinguish itself from the similarly-scoped sibling browser_pdf, which is the one remaining gap rather than an ambiguity about what this tool does.

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?

It gives concrete when-to-use guidance per mode: fullPage:true is recommended 'when reviewing long pages or comparing layout', and ref is scoped to a single element. It stops short of explicit when-not guidance or naming an alternative (e.g. browser_pdf for print-layout capture), so it is clear context without exclusions.

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