Tabs
browser_tabs
Manage browser tabs — list, create, close, or select a tab.
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | yes | list, new, close, or select |
index | number | no | Tab index, used for close/select. If omitted for close, the current tab is closed |
url | string | no | URL to navigate to in the new tab, used for new |
Every action returns the resulting tab list.
List all tabs
→ browser_tabs { action: "list" }
- 0: [](about:blank)
- 1: (current) [React • TodoMVC](https://demo.playwright.dev/todomvc)
- 2: [Example Domain](https://example.com)
Tabs are numbered from 0, the active one is marked (current), and a crashed tab is marked [crashed].
Open a new tab
→ browser_tabs { action: "new", url: "https://example.com" }
→ Returns a snapshot of the new tab
Omit url to open a blank tab.
Switch to a tab
→ browser_tabs { action: "select", index: 1 }
Close a tab
→ browser_tabs { action: "close" } // close current tab
→ browser_tabs { action: "close", index: 2 } // close specific tab
Workflow: comparing two pages
You: Open staging and production, compare the headers.
→ browser_navigate { url: "https://staging.example.com" }
→ browser_snapshot // snapshot of staging
→ browser_tabs { action: "new", url: "https://example.com" }
→ browser_snapshot // snapshot of production
// LLM compares the two snapshots