Skip to main content
Glama
Playwright DevTools MCP Server

Playwright DevTools MCP Server

by ariangibson

browser_launch

Launches a new browser instance and creates a browser context for web debugging, enabling page inspection and DevTools-based debugging.

Instructions

Launch a new browser instance and create a browser context for web debugging

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
headlessNoRun browser in headless mode
viewportNoBrowser viewport dimensions
userAgentNoCustom user agent string

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure and largely does not meet it. It does not say whether launching is idempotent, what happens when an instance already exists, whether a browser_close is required to release resources, or whether the call is slow/resource-heavy. For a stateful resource-creating tool 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 front-loaded sentence with no filler; the action and resource come first. It is arguably too short rather than too long, but there is no wasted wording.

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?

No output schema exists, so the description should indicate what the agent gets back — a browser id, a context handle, or nothing — since subsequent tools likely need it. It also omits lifecycle context (relationship to browser_close) that matters for a tool that allocates a process. Given 3 params, a nested object, and no annotations, the definition is under-informative.

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 headless, viewport, and userAgent are already documented, including defaults and the nested width/height. The description adds no meaning beyond the schema, which is the expected baseline of 3 rather than a deficiency.

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 names a specific verb and resource pair ('Launch a new browser instance and create a browser context') and adds a scope qualifier ('for web debugging'), which separates it from read-only siblings like browser_navigate or debug_get_dom_tree. It stops short of distinguishing itself from browser_force_recreate or browser_close, which is the one sibling relationship an agent most needs clarified.

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 when-to-use or when-not-to-use guidance. The agent is not told whether this must be called before any browser_* tool, what to do if a browser is already running, or when browser_force_recreate would be the better choice. Usage is only inferable from the verb 'Launch'.

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