Skip to main content
Glama

标签管理

browser_tabs
Destructive

Manage browser tabs for an MCP client: list owned tabs, open a background or isolated tab, select a default tab, and close tabs without changing the user's visible browser unless requested.

Instructions

Manage this MCP client’s tabs: "list" shows only tabs owned by this client (the first operation may claim the current unowned tab); "new" opens an owned tab without switching the user’s visible tab; "select" changes this client’s default tab (pass bringToFront:true only when intentionally switching the shared visible browser); "close" closes an owned tab. Tabs share the browser session (cookies/logins) unless created with isolated:true, which uses a throwaway partition cleared on close.

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

Input Schema

NameRequiredDescriptionDefault
urlNo(action=new) URL to open
tabIdNo(action=select/close) target tab id
actionYesTab operation
isolatedNo(action=new) Use a throwaway session partition instead of the shared one (default: settings)
bringToFrontNo(action=select) Also restore/show the browser window and focus the page (default false: only switches the active tab)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint:true and openWorldHint:true, so the bar is lower, yet the description adds real substance: tabs share the browser session's cookies/logins unless isolated:true, and an isolated partition is cleared on close. It also discloses the ownership model behind list/select, which annotations cannot express. It does not say whether closing a tab loses unrecoverable state or what happens to already-open owned tabs on session end.

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 whole definition is a single dense sentence, but it is front-loaded with the highest-value facts (ownership scoping, no visible-tab switching) and every clause carries information. The semicolon-and-parenthesis density makes it slightly harder to scan than a broken-out per-action list would be.

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 five-parameter tool with no output schema, all actions, the isolation model, and the bringToFront caveat are covered. The remaining gap is the return value of list (what a tab entry looks like or how tabId is formatted), which an agent needs to chain a follow-up select or close.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so a 3 is the baseline and the schema already tags each parameter with its applicable action. The description nonetheless adds meaning beyond the schema: isolated partitions are "cleared on close," select only changes this client's default tab, and list's first call may claim the unowned tab. Only url receives no extra semantic content.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ("Manage this MCP client's tabs") and then enumerates all four operations — list, new, select, close — with a one-clause gloss for each. This is enough for an agent to distinguish it from page-level siblings like browser_navigate or browser_page_state without opening the schema.

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

Usage Guidelines4/5

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

Each action carries usage context: list shows only client-owned tabs and may claim the current unowned tab; new avoids switching the visible tab; bringToFront:true should be passed "only when intentionally switching the shared visible browser"; isolated:true is for throwaway sessions. The one gap is that no alternative sibling tool (e.g. browser_navigate for in-page navigation) is named, so exclusion guidance is implied rather than explicit.

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