Skip to main content
Glama
mcp-browser-dev-tools

mcp-browser-dev-tools

by Hinaser

take_screenshot

Captures a page or specific selector as a screenshot, returning base64 data, image content, or a saved file, and maps image pixels to page coordinates when needed.

Instructions

Screenshot the page or selector: base64 in the JSON (output data, default), image content (image), or a file (file, or path). cssRect and scale convert image pixels to x, y.

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

Input Schema

NameRequiredDescriptionDefault
pathNoAbsolute, ending in .png, .jpg, .jpeg, .webp; default a temp file.
formatNoDefault png; must match path's extension.
outputNoDefault data; file when path is given.
selectorNoLocator: ref=e3, CSS, text=…, role=button[name="…"], name=…, or a >> b
overwriteNoReplace an existing file.
sessionIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.4

TDQS

B3.3/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 behavioral burden. It discloses output modes and defaults, but omits important traits such as whether it captures viewport or full page, how waiting works, and what file overwrite does. It also mentions cssRect and scale, which are not in the input schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded, but the final clause about cssRect and scale is confusing because those parameters are absent from the schema. That stray information reduces clarity despite the short length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has six parameters, no annotations, and no output schema, so the description must do more work. It explains output modes reasonably well, but leaves gaps around capture scope, file side effects, and parameter handling.

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 already high at 83%, so the baseline is 3. The description adds some meaning about output defaults and path behavior, but its reference to cssRect and scale does not correspond to actual parameters in 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?

The description states a specific verb and resource: screenshot the page or selector. It also distinguishes output modes, but does not differentiate from sibling tools such as get_snapshot, so it stops short of a 5.

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 implied by 'Screenshot the page or selector' and by the output-mode explanation. However, there is no explicit when-to-use guidance versus alternatives, and no when-not guidance.

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