Skip to main content
Glama
playwright-mcp-router

playwright-mcp-router

by huangzt

browser_tabs

Destructive

Manage isolated browser tabs by listing, creating, closing, or selecting them within a named session, so concurrent agents keep separate tab groups.

Instructions

List, create, close, or select a browser tab.

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

Input Schema

NameRequiredDescriptionDefault
urlNoURL to navigate to in the new tab, used for new.
colorNoOptional Chrome tab group color override for a newly created session.
indexNoTab index, used for close/select. If omitted for close, current tab is closed.
actionYesOperation to perform
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.
isolatedContextNoName of an isolated browser context to create the new tab in, used for new. Tabs in the same isolated context share cookies and storage, tabs in different contexts are fully isolated. If omitted or "default", the tab is created in the default context.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and openWorldHint=true, so the safety profile is partly covered. The description adds almost no behavioral detail beyond the operation list: it does not explain that closing destroys a tab, selecting changes the active tab, or that session/isolation scoping prevents cross-agent interference.

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?

The single sentence is front-loaded, waste-free, and directly enumerates the supported operations. It is concise to the point of under-specification, but structurally it does not bury information.

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?

For a tool with seven parameters, destructive close behavior, isolated contexts, and concurrency concerns, the description is far too thin. It omits when to use each action, safety implications of closing tabs, and the significance of the required session parameter.

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 schema already documents all seven parameters, including action enum behavior, session isolation, URL usage, and tab index semantics. The description adds no parameter meaning beyond the schema, which is acceptable at this coverage level but not enriching.

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 resource (browser tab) and enumerates the four operations matching the action enum: list, create, close, select. It is clear what the tool does, though it does not distinguish tab lifecycle management from siblings like browser_navigate or browser_close.

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 guidance on when to use this tool versus browser_navigate, browser_close, or other tab-related siblings. It also omits critical context such as using unique session names to avoid concurrent-agent hijacking, even though the schema mentions this.

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