Skip to main content
Glama
Playwright MCP Server

Playwright MCP Server

by sohitmahato

playwright_record_start

Starts a named Playwright recording session to capture browser actions for test generation.

Instructions

Start recording actions for test generation

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_record_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName for the recording session

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 supplied, so the description carries the full burden. It never says that recording begins a persistent session, that it continues until stopped, whether starting twice is an error, or whether actions are captured globally across pages — all behavior an agent needs before invoking a stateful recorder.

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?

One short, front-loaded sentence with no wasted words. Its brevity reflects under-specification rather than padding, so it is efficient but thin.

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?

For a stateful recording tool with no annotations and no output schema, the description says nothing about session lifecycle, what the call returns, or how captured actions flow into test generation. That leaves key operational context missing.

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% for the single required parameter, so the schema already defines "name" as the session name. The description adds no further meaning such as naming constraints or reuse rules, which meets the baseline for fully documented schemas.

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?

States a specific verb and object ("Start recording actions") plus the downstream purpose ("for test generation"), which separates it from sibling action tools like playwright_click. It does not name playwright_record_stop, but the intent is unambiguous.

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?

The phrase "for test generation" hints at the motive, but there is no explicit guidance on when to start a recording, whether it must be paired with playwright_record_stop, or whether playwright_generate_test requires a prior recording. An agent must infer the workflow.

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