Skip to main content
Glama

browser_tab_select

Focus a specific browser tab by ID so AI agents can target subsequent navigation, clicks, typing, or screenshots to the correct tab.

Instructions

Focus a browser tab by id.

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": {
      "tabId": "<tabId>"
    },
    "name": "browser_tab_select"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden and does not mention whether the tab must already exist, what occurs with an invalid or closed tab id, or whether focusing affects subsequent browser_click/browser_type calls. It does at least convey that this changes active focus rather than creating or destroying anything.

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?

One short, front-loaded sentence with no wasted words. Its brevity is appropriate for the structure, though the terseness contributes to gaps captured in other dimensions.

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 one-parameter tool this is close to the minimum viable, but with no annotations, no output schema, and 0% schema coverage, an agent gets no information on id provenance or failure behavior. A single clause about where tab ids come from would substantially improve it.

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

Parameters2/5

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

Schema description coverage is 0% for the single required tabId parameter, so the description must compensate. "By id" only hints that tabId is an identifier, without saying where to obtain it (presumably browser_tab_list) or whether it is a stable handle versus an index.

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 gives a specific verb plus resource ("Focus a browser tab") and the selector ("by id"), which distinguishes it from siblings like browser_tab_new, browser_tab_close, and browser_tab_list. It is clear but does not explicitly name or contrast those siblings.

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 versus alternatives, no note that it should precede other browser interactions on that tab, and no mention that an unknown id may fail. The only implied usage comes from the word "Focus" itself.

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