Skip to main content
Glama

Adopt user's tab

browser_use_tab
Idempotent

Take over an already open signed-in or mid-flow tab to preserve checkout, draft, or SSO state instead of reopening the URL and losing progress.

Instructions

Take over a tab the user already has open, instead of opening a new one. Use this when the page is already signed in or mid-flow — a checkout, a draft, a dashboard behind SSO — and re-opening the URL would lose that state. Find the tab_id with browser_list_tabs all=true. The tab stays exactly where it is in the user's window; it is not moved into the agent's group, not activated, and not reloaded. It is never closed by cleanup — call browser_release_tab to hand it back. Ask the user before taking over a tab they are actively working in. It also takes back a tab still held under the same session_id by an earlier MCP server process, for instance after an interrupted call restarted this server.

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": {
      "tab_id": "<tab_id>"
    },
    "name": "browser_use_tab"
  }
}

Input Schema

NameRequiredDescriptionDefault
tab_idYestab_id of the user's tab, from browser_list_tabs all=true
session_idNoStable task or thread ID. Pass the same value on every browser call for this task. Different IDs isolate tabs and cleanup within one MCP process. Omit for the default process session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.3
    • addedInput schema / properties / session_id
      Added value: +{
      +  "description": "Stable task or thread ID. Pass the same value on every browser call for this task. Different IDs isolate tabs and cleanup within one MCP process. Omit for the default process session.",
      +  "maxLength": 128,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.3.1
    • changedInput schema / properties / tab_id / description
      Previous value: -"From browser_list_tabs all=true"New value: +"tab_id of the user's tab, from browser_list_tabs all=true"
  3. First observedv0.3.0

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (which only say non-destructive, idempotent, open-world, non-read-only), the description discloses the exact side effects: the tab is not moved, not activated, not reloaded, and is exempt from cleanup unless released explicitly. It further discloses the recovery case of reclaiming a tab held under the same session_id after an interrupted server restart.

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?

The core adoption semantics come first, then the prerequisite lookup, then the lifecycle guarantees, then the session-recovery edge case. Each sentence carries non-redundant operational information.

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

Completeness5/5

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

For a two-parameter tool with no output schema, the description covers lifecycle, cleanup exemption, handoff, prerequisite lookup, and the restart-recovery scenario — nothing an agent needs to call it safely is missing.

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 the baseline is 3, but the description adds real meaning about session_id's role in reclaiming tabs left by an earlier MCP server process, which the schema only frames as isolation and cleanup scoping.

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 opens with a precise verb-plus-resource statement ('Take over a tab the user already has open, instead of opening a new one') that immediately distinguishes it from browser_open_tab and makes the adoption-vs-creation distinction unambiguous.

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

Usage Guidelines5/5

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

It names concrete conditions for use (signed-in page, checkout, draft, SSO dashboard) and explains why re-opening the URL would lose state. It also points to the prerequisite step (browser_list_tabs all=true) and the follow-up handoff tool (browser_release_tab), plus a social constraint to ask the user before taking over an actively used tab.

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