Skip to main content
Glama

Switch Browser Tab

browser_switch_tab

Switch the active Chromium tab by zero-based index, URL substring, or title substring to focus the correct browser tab.

Instructions

Switch the active Chromium tab by zero-based index, URL substring, or title substring.

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

Input Schema

NameRequiredDescriptionDefault
indexNoZero-based tab index from browser_get_tabs
session_idNoOptional target browser session ID (defaults to active default session)
urlContainsNoSwitch to first tab whose URL contains this substring
titleContainsNoSwitch to first tab whose title contains this substring

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare the operation is non-destructive, non-read-only, and confined to the local browser, so the safety profile is covered. The description adds the matching semantics but is silent on what happens when no tab matches, whether the first match wins for URL/title modes, or what the return value is, which are the behavioral gaps an agent would hit in practice.

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?

A single front-loaded sentence with no filler; the selector modes are listed compactly and every word carries information.

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 four-parameter optional tool with no output schema, the description covers how to target a tab but not the failure path (no match found), selector precedence, or the effect on the previously active tab. Those omissions are the difference between adequate and complete.

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 every parameter already carries its own documentation including that index comes from browser_get_tabs. The description only restates the three selector families and adds no meaning beyond the schema, which is the expected baseline here.

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?

Names a specific verb ('Switch') and resource ('the active Chromium tab') and enumerates the three selector modes, so the agent knows exactly what the tool does. It stops short of contrasting with siblings like native_chrome_select_tab or session_switch, so differentiation is left implicit.

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

Usage Guidelines3/5

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

The three selector modes imply when to reach for this tool (you have an index, a URL fragment, or a title fragment), but there is no explicit statement of precedence when multiple selectors are supplied, nor when to prefer this over native_chrome_select_tab or session_switch.

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