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
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Target tab for `select` (required) / `close`: a tabId like `t2` or a label. `close` defaults to the active tab. | |
| url | No | `new` only: URL to open (defaults to about:blank). | |
| udid | Yes | Chromium device id from `list-devices` (e.g. `chromium-cdp-9222`). | |
| label | No | `new` only: a memorable label usable interchangeably with the tabId. | |
| action | Yes | 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. |