Skip to main content
Glama
patchright-mcp

patchright-mcp

by quantmew

browse

Launch a browser and navigate to a URL, optionally inheriting cookies and localStorage from Chrome, Edge, or Chromium to preserve authenticated sessions.

Instructions

Launch browser and navigate to URL. Supports inheriting cookies/localStorage from Chrome/Edge/Chromium.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe URL to navigate to
browserNoSource browser type for session inheritancechrome
profileNoBrowser profile nameDefault
waitForNoWait time after page load (milliseconds)
headlessNoRun browser in headless mode
userDataDirNoSource browser User Data Directory path for session inheritance
inheritSessionNoWhether to inherit cookies/localStorage from source browser

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?

No annotations are supplied, so the description carries the full behavioral burden. It does disclose a meaningful side effect beyond the obvious — that cookies/localStorage can be inherited from an installed Chrome/Edge/Chromium profile — but says nothing about the return value (page handle? session id?), whether a new browser process is spawned per call, or how this interacts with 'close'/'navigate'.

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?

Two short sentences, the primary action front-loaded and the differentiator second. Nothing redundant or padded.

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

Completeness3/5

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

For a 7-parameter tool with no annotations and no output schema, the description covers only the core action and one capability. It leaves open what the call returns, whether the launched browser persists across subsequent tool calls, and how waitFor/headless affect behavior, which matters for orchestrating with siblings.

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%, including defaults and an enum for the browser field, so the schema already carries the parameter semantics. The description only restates the inheritance capability that 'inheritSession'/'userDataDir' encode, adding no syntax, constraints, or edge cases.

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 two concrete actions (launch browser, navigate to URL) and the resource involved, so the operation is unambiguous. It does not, however, distinguish itself from the sibling 'navigate' tool or explain why one would launch rather than reuse an existing session.

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?

Usage is only implied: 'Launch browser' suggests this is the entry point before other browser tools, and the inheritance clause hints at scenarios needing an authenticated session. There is no explicit when-to-use, when-not-to-use, or reference to 'navigate'/'list_browsers' as alternatives.

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

Deploy Server

Other Tools