Skip to main content
Glama
playwright-mcp-router

playwright-mcp-router

by huangzt

browser_close

Destructive

Close the browser and all open tabs to end an isolated session and release its resources, preventing leftover tabs from interfering with other agents.

Instructions

Close the browser and all open tabs.

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

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

B3.2/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, so the safety profile is largely covered. The description adds real value by disclosing that ALL open tabs are lost, not just the active one, but it omits whether the isolated session itself is terminated, whether state is recoverable, and whether other agents sharing the same browser are affected.

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 short sentence with no filler and the destructive scope front-loaded. It is efficient, but its terseness is also under-specification rather than disciplined brevity.

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 destructive, session-scoped teardown with no output schema, the description covers what happens but not the blast radius or recovery implications. An agent can call it, but cannot confidently predict the effect on other concurrent sessions, which is the main risk of this tool.

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 the session, account, and color parameters are already documented in the schema and the baseline is 3. The description adds no parameter-level meaning at all — notably it never explains how `session` determines the close scope, nor why `color` exists on a close operation.

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 ("Close the browser and all open tabs"), so the agent knows it is a teardown operation. However, it never states that the close is scoped to the required `session`, which is the one thing that distinguishes it from sibling teardown tools such as `router_close_session` and `router_close_all_sessions`.

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 guidance, no precondition (e.g. must a session be active), and no routing to alternatives. The agent receives no signal about whether this closes one session's browser or the whole browser, which matters given multiple close-related siblings.

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