Skip to main content
Glama

Select browser tab

browser_select_tab
Idempotent

Make an agent tab visible for native keyboard input or desktop capture; by default it stays in the background so the user's own tab remains active.

Instructions

Make one of the agent's tabs the visible one in its window. Rarely needed: browser_snapshot, browser_read, browser_screenshot, browser_click, browser_type, browser_fill and browser_press_key all work on a background tab, frames included, so the user can keep using their own tab. By default the tab is only shown when the user is already looking at one of the agent's tabs; otherwise it stays in the background, the user keeps their tab, and the reply says it was not brought to front. bring_to_front=true switches the user's window to this tab and raises it over whatever they are doing, which interrupts them: it is a last resort, only for native keyboard input or a desktop capture that cannot work any other way, never to look at a page (use browser_screenshot). The user's own tabs are never selected.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "browser_select_tab"
  }
}

Input Schema

NameRequiredDescriptionDefault
indexNo1-based position within the agent's tabs; fallback mode only, when tab_id is unavailable
tab_idNotab_id of one of the agent's tabs, from browser_open_tab or browser_list_tabs
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.
bring_to_frontNoShow the tab and raise its Chrome window even when the user is on one of their own tabs. This interrupts the user; last resort only, never to look at the page (browser_screenshot does that in the background). Default false: the tab is only shown when the user is already on an agent tab.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.14.0
    • changedInput schema / properties / bring_to_front / description
      Previous value: -"Show the tab and raise its Chrome window even when the user is on one of their own tabs. Default false: the tab is only shown when the user is already on an agent tab."New value: +"Show the tab and raise its Chrome window even when the user is on one of their own tabs. This interrupts the user; last resort only, never to look at the page (browser_screenshot does that in the background). Default false: the tab is only shown when the user is already on an agent tab."
  2. Changed1 schema field changedv0.9.3
    • addedInput schema / properties / bring_to_front
      Added value: +{
      +  "description": "Show the tab and raise its Chrome window even when the user is on one of their own tabs. Default false: the tab is only shown when the user is already on an agent tab.",
      +  "type": "boolean"
      +}
  3. 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"
      +}
  4. Changed2 schema fields changedv0.3.1
    • changedInput schema / properties / index / description
      Previous value: -"1-based index, fallback mode only"New value: +"1-based position within the agent's tabs; fallback mode only, when tab_id is unavailable"
    • changedInput schema / properties / tab_id / description
      Previous value: -"From browser_list_tabs"New value: +"tab_id of one of the agent's tabs, from browser_open_tab or browser_list_tabs"
  5. First observedv0.3.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the safety profile (readOnly=false, destructive=false, idempotent=true); the description goes well beyond that by describing the default no-op behavior (tab shown only if the user is already on an agent tab), the response signal when it was not brought to front, and the user-visible interruption caused by bring_to_front. It also states the hard guarantee that the user's own tabs are never selected, which no annotation conveys.

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?

Front-loaded with the action, then the rarity and alternatives, then the escalation rule — a good information ordering. It is somewhat long and restates the bring_to_front interruption warning that already appears in the schema, but every sentence carries distinct decision-relevant content.

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?

No output schema exists, yet the description tells the agent what the reply will say when the tab is left in the background, which is the one return-value detail that matters for next-step decisions. For a 4-parameter, non-destructive UI operation, nothing an agent needs in order to call it correctly 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 behavioral meaning the schema does not: what the default (false) means for the user's window, and that index is a fallback used only when tab_id is unavailable. session_id semantics are left entirely to the schema.

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?

"Make one of the agent's tabs the visible one in its window" is a specific verb plus resource with clear scope (agent's tabs only). It also immediately names which siblings do not need this call, so the agent can separate it from browser_use_tab, browser_open_tab, or browser_list_tabs without opening a schema.

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?

Explicit when-not guidance: "Rarely needed" because snapshot/read/screenshot/click/type/fill/press_key all work on a background tab, and an explicit alternative for the common mis-use case ("never to look at a page (use browser_screenshot)"). It further narrows the legitimate case to native keyboard input or desktop capture that cannot work otherwise.

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