Skip to main content
Glama
Playwright MCP Server

Playwright MCP Server

by sohitmahato

playwright_screenshot

Capture the current browser page as a screenshot and save it to a specified filename, with an option to include the full page.

Instructions

Take a screenshot of the current page

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": {
      "name": "<name>"
    },
    "name": "playwright_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName for the screenshot file
fullPageNoCapture full page screenshot

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden and falls short: it does not say whether the image is returned inline or written to disk, where the file lands, or what happens on a non-navigated page. For a capture tool whose central output question is unanswered, this is a meaningful gap.

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?

A single short sentence with no filler, and the core action is front-loaded. It is efficient, though the brevity is partly under-specification rather than disciplined compression.

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

Completeness2/5

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

With no annotations and no output schema, the description is the only place to explain how the screenshot is delivered back to the caller, and it omits that entirely. For a tool this simple, the parameter side is covered, but the result side is not.

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 both 'name' and 'fullPage' are already documented, and the description adds nothing beyond them. It does not clarify, for instance, whether 'name' needs an extension or whether it is a path versus a bare filename.

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 ('Take a screenshot of the current page'), which is unambiguous and clearly distinct from siblings like playwright_click or playwright_extract_text. It does not explicitly name or differentiate against alternatives, but the action is self-evident.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this rather than playwright_extract_text or playwright_get_page_info, nor any prerequisites (e.g., whether a page must be navigated to first). The agent must infer the usage context entirely.

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