Skip to main content
Glama
playwright-mcp-router

playwright-mcp-router

by huangzt

browser_stop_recording

Read-only

Stop a session's browser action recording and return the captured interactions as Playwright code.

Instructions

Stop the recording started with browser_start_recording and return the recorded actions as Playwright code.

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

Input Schema

NameRequiredDescriptionDefault
colorNoOptional Chrome tab group color override for a newly created session.
accountNoChrome account profile to use (defaults to 'default'). Configured accounts: 'default' (Isolated Browser).default
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description does add one piece of behavior beyond that – the return value is executable Playwright code, which matters since no output schema exists – but it says nothing about what happens to the recording on stop, error behavior, or how the session parameter scopes the captured actions.

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?

A single sentence, front-loaded with the action and followed by the pairing constraint and the return type. No redundant wording.

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?

For a simple stop/return tool with fully described parameters, the definition covers the essential pairing and the output shape, which compensates for the missing output schema. Only edge cases such as stopping with no active recording are left unaddressed.

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 session, account and color are fully documented in the schema itself. The description adds no extra meaning about how 'session' selects which recording is stopped, so the baseline of 3 applies.

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?

Names a specific verb (stop) and resource (recording) and ties it to the exact tool that starts it, plus states what it returns (Playwright code). It implicitly separates itself from browser_stop_tracing and browser_stop_video by referencing browser_start_recording, but never names those siblings to rule them out explicitly.

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?

The prerequisite is stated clearly: this only applies to a recording begun with browser_start_recording. There is no guidance on what to do if no recording is active, nor an explicit pointer to stop_tracing/stop_video for the other capture modes.

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