Skip to main content
Glama
Antigravity in Chrome MCP Server

Antigravity in Chrome MCP Server

by sxqib

switch_tab

Activates a specific browser tab using its tab ID, bringing the intended page into focus so users can continue work in the correct tab.

Instructions

Focus and activate a specific browser tab by its tabId.

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": "switch_tab"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdYesThe target tab ID to activate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure. It does signal the side effect of changing focus/activation, which is useful, but says nothing about what happens with a stale or invalid tabId, whether the tab must belong to the current window, or whether the operation returns 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?

A single front-loaded sentence with no filler, though "specific" and "by its tabId" are slightly redundant with the schema. Nothing is buried or wasted.

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 one-parameter, no-output focus tool this covers the essential action and target. The remaining gap is failure behavior for invalid IDs, which is modest given the tool's simplicity.

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 coverage is 100% and the single tabId parameter is fully documented in the schema, so baseline 3 applies. The description's phrase "by its tabId" restates rather than extends the schema meaning.

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 states a concrete verb pair ("Focus and activate") and resource ("browser tab"), scoped to a single tab via tabId. This clearly separates it from tab-lifecycle siblings like tabs_create_mcp and tabs_close_mcp, though no sibling is named explicitly.

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 statement of when to call this versus alternatives such as tabs_context_mcp (to discover tab IDs) or navigate (which may also change the active page). The agent must infer that a tab must already exist and that its ID comes from elsewhere.

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