Skip to main content
Glama
playwright-mcp-router

playwright-mcp-router

by huangzt

browser_take_screenshot

Read-only

Captures the current browser page, viewport, or specific element as a PNG, JPEG, or WebP file, enabling visual inspection and coordinate-based interaction when accessibility snapshots omit elements.

Instructions

Take a screenshot of the current page. Use browser_snapshot for actions by default. With the vision capability enabled, use screenshot coordinates with the coordinate-based mouse tools for elements not exposed in the accessibility snapshot.

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": {
      "session": "<session>",
      "scale": "<scale>"
    },
    "name": "browser_take_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoImage format for the screenshot. If unset, inferred from the filename extension, otherwise png.
colorNoOptional Chrome tab group color override for a newly created session.
scaleYesImage resolution scale. "css" produces a screenshot sized in CSS pixels (smaller, consistent across devices). "device" produces a high-resolution screenshot using device pixels (larger, accounts for the device pixel ratio). Default is css.css
targetNoExact target element reference from the page snapshot, or a unique element selector
accountNoChrome account profile to use (defaults to 'default'). Configured accounts: 'default' (Isolated Browser).default
elementNoHuman-readable element description used to obtain permission to interact with the element
sessionYesRequired isolated session name (also displayed as the Chrome tab group title), e.g. "T1867-api-debug" or "home-css". Use a unique, descriptive task name per conversation so concurrent agents never hijack each other's active tab.
filenameNoFile name to save the screenshot to. Relative file names are resolved against the workspace root. If not specified, the screenshot is saved into the output directory as `page-{timestamp}.{png|jpeg|webp}`.
fullPageNoWhen true, takes a screenshot of the full scrollable page, instead of the currently visible viewport. Cannot be used with element screenshots.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is fully covered by structured data. The description adds little behavioral context beyond noting the coordinate handoff to mouse tools; it does not say whether the image is returned to the model, what happens on failure, or how it interacts with a session's active tab. Adequate but not enriching once annotations are accounted for.

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

Conciseness4/5

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

Three short sentences, front-loaded with the action and followed by the routing rule and the vision-capability exception. No filler or restatement of the tool name; the only mild looseness is that the vision sentence packs a fair amount of conditionality into one clause.

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

Completeness4/5

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

With 9 parameters at full schema coverage, no output schema, and complete annotations, the description needs only to frame purpose and routing, which it does. The one residual gap is that it never states that the screenshot is returned as viewable image content rather than only written to disk, which matters for a vision-gated tool.

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%, including defaults and enum meanings for scale, type, and color, so the schema carries parameter meaning on its own. The description mentions screenshot coordinates, which loosely relates to target/element, but adds no format or usage detail beyond what each property already documents. Baseline 3 applies.

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?

States a specific verb and resource ("Take a screenshot of the current page") and immediately differentiates itself from browser_snapshot, the dominant sibling for interaction work. An agent can tell what this does and where it sits relative to the primary browsing tool without opening either schema.

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 an explicit default rule ("Use browser_snapshot for actions by default") plus the precise condition that makes this tool the right choice: vision capability enabled and the element is not exposed in the accessibility snapshot. That is a when/when-not pair with a named alternative, which is the top bar for this dimension.

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