Skip to main content
Glama

chromium-tabs

List, select, open, or close Chromium CDP tabs and windows so you can target a specific page before inspecting, screenshotting, or driving it.

Instructions

List and switch the tabs / windows of a Chromium (CDP) app (an Electron app's BrowserWindows or a Chromium browser's tabs), and open or close them. The active tab is what describe / gesture-tap / screenshot / debugger-evaluate / open-url all operate on, so select a tab before driving it. tabIds (t1, t2, …) are stable for the session and never reused. Use when an app exposes multiple windows or tabs and you need to inspect or drive one other than the current page, or to open/close a page during an e2e test. Returns { tabs: [{ tabId, targetId, title, url, active, label? }] } after the action. Fails if the device is not a Chromium (CDP) device, or the requested tabId/label no longer matches a live tab.

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": {
      "udid": "<udid>",
      "action": "<action>"
    },
    "name": "chromium-tabs"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabNoTarget tab for `select` (required) / `close`: a tabId like `t2` or a label. `close` defaults to the active tab.
urlNo`new` only: URL to open (defaults to about:blank).
udidYesChromium device id from `list-devices` (e.g. `chromium-cdp-9222`).
labelNo`new` only: a memorable label usable interchangeably with the tabId.
actionYeslist: enumerate tabs/windows. select: make a tab active. new: open a tab and activate it. close: close a tab; if it was active, another live tab becomes active.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"list: enumerate tabs/windows. select: make a tab active (every other tool then acts on it). new: open a tab. close: close a tab."New value: +"list: enumerate tabs/windows. select: make a tab active. new: open a tab and activate it. close: close a tab; if it was active, another live tab becomes active."
    • changedInput schema / properties / tab / description
      Previous value: -"Target tab for `select` / `close`: a tabId like `t2` or a label. `close` defaults to the active tab."New value: +"Target tab for `select` (required) / `close`: a tabId like `t2` or a label. `close` defaults to the active tab."
  2. First observedv0.15.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations at all, the description still carries substantial behavioral burden: it discloses tabId stability semantics (never reused), which tab becomes active, default behaviors (close defaults to active tab, url defaults to about:blank), lifetime/destruction effects, and the failure modes. It doesn't cover permission/auth needs, but for a local device-driving tool those are largely absent.

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?

Four sentences, front-loaded with the verb+resource, then the cross-tool dependency, then when-to-use, then return shape. Dense but each sentence earns its place; minor redundancy with the schema on default behavior.

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, so the description supplies the return shape ({ tabs: [...] } with field names) and failure modes. Combined with an already-complete input schema and detailed action enum, an agent has everything needed to call it correctly and interpret the result.

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%, so every parameter is already documented, including action enum values and tab/url/label semantics. The description adds a little beyond the schema (tabId examples, the active-tab consequence of select, permanence of tabIds), but most parameter meaning already lives in the schema, capping this at the baseline.

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?

Specific verbs (list, switch, open, close) plus the resource (Chromium CDP tabs/windows), with an explicit disambiguation from siblings: it names describe, gesture-tap, screenshot, debugger-evaluate, and open-url as tools that all operate on the active tab, so the agent can tell when this tool is a prerequisite.

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-to-use: multiple windows/tabs, need to drive one other than the current page, or open/close a page during an e2e test. It also states a prerequisite flow (select a tab before driving it) and the failure condition when the device is not a CDP device.

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