Skip to main content
Glama
playwright-ui-mcp

playwright-ui-mcp

by ailabs-393

browser_launch

Launch a visible Playwright browser to capture and analyze UI, verify interactions, and optionally record video for debugging or demos.

Instructions

Launch a headed browser for UI capture and analysis. The browser will be visible on screen. By default runs in lightweight mode (no video). Enable recordVideo only when you need to capture a sequence of interactions for debugging or demonstration.

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

Input Schema

NameRequiredDescriptionDefault
widthNoViewport width in pixels (default: 1280)
heightNoViewport height in pixels (default: 720)
slowMoNoSlow down operations by specified milliseconds. Only use when you need to visually observe actions.
recordVideoNoEnable video recording of the session. Only enable when needed (e.g., debugging complex flows, capturing demos). Default: false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose two meaningful traits: the browser is visible on screen, and the default is a lightweight no-video mode. It omits what happens on repeated launches (new browser vs reuse), permission or display requirements, and what the call returns for use by sibling tools.

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 sentences, front-loaded with the core action and no wasted preamble. The sentence "The browser will be visible on screen" slightly restates "headed," a minor redundancy.

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 four-parameter optional-all launch tool with no output schema, the definition covers purpose, visual behavior, and the key default, which is close to what an agent needs. The remaining gap is lifecycle context: whether this must precede browser_navigate and whether it can be called more than once.

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%, so viewport size, slowMo, and recordVideo defaults are already documented, and the description adds only reinforcing context about the no-video default. Baseline 3 is appropriate since the schema does the heavy lifting.

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?

"Launch a headed browser for UI capture and analysis" gives a specific verb and resource, and the word "headed" plus the visibility note distinguishes it from headless capture siblings like browser_screenshot. It stops short of differentiating itself from browser_new_page, so an agent must guess whether a browser is already running.

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

Usage Guidelines3/5

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

The description gives conditional guidance for one parameter ("Enable recordVideo only when you need to capture a sequence of interactions") and states the lightweight default, which is genuinely useful. It offers no guidance on when this tool is required versus calling browser_navigate directly, nor any ordering advice relative to browser_new_page or browser_status.

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