Skip to main content
Glama
Pagewright (browser-mcp)

Pagewright (browser-mcp)

by zamansheikh

browser_screenshot

Read-only

Capture the viewport, full page, or a specific element to check visual layout, spacing, alignment, and CSS changes.

Instructions

Capture what the page looks like: the viewport (default), the full scrollable page, or one element (ref/selector). Use it to check visual layout, spacing, alignment, and the result of CSS changes.

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 from browser_snapshot, e.g. "e12". Preferred over selector.
scaleNo"css" (default) = 1 image px per CSS px; "device" = full retina resolution.
tabIdNoTab to act on. Defaults to the tab last opened/selected by an agent, else the active tab.
formatNoDefault png; jpeg is much smaller for long pages.
qualityNojpeg/webp quality (default 80).
fullPageNo
savePathNoAlso save the image to this file path.
selectorNoCSS selector, "text=Sign in" (visible text), or "xpath=//button". Searches open shadow roots too.
maxHeightNoCap full-page height in CSS px (default 12000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered, and the description usefully adds the default-vs-full-page-vs-element capture semantics. It is silent on what is actually returned (inline image vs. saved file when savePath is set) and on behavior when an element ref/selector fails to resolve, which matters for a 9-parameter tool with no output schema.

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?

Two sentences, zero filler, with the capture modes and the default stated first and the motivating use cases second. Nothing is redundant with the title or schema.

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?

For a tool with 9 optional parameters, no output schema, and multiple capture modes, the description covers mode selection and purpose adequately but leaves the return value entirely unspecified. An agent knows how to aim the tool but not what it will get back, which is the main remaining gap.

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 89%, so the baseline is 3. The description reinforces only the ref/selector and fullPage semantics that the schema already documents; it adds nothing about scale, format/quality interaction, maxHeight, or savePath.

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 names a specific verb and resource (capture what the page looks like) and enumerates the three capture scopes: viewport (default), full scrollable page, and single element via ref/selector. It does not differentiate itself from plausible siblings such as browser_audit_layout or browser_snapshot, so an agent must still infer which of those to reach for.

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 clear positive guidance: use it to check visual layout, spacing, alignment, and the result of CSS changes. There is no when-not-to-use guidance and no named alternative, so the agent cannot tell from the text alone whether browser_audit_layout or browser_snapshot is the better first call.

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