Skip to main content

Tabs

browser_tabs

Manage browser tabs — list, create, close, or switch between them.

ParameterTypeRequiredDescription
actionstringyeslist, new, close, or select
urlstringnoURL for new action
indexnumbernoTab index for select or close

List all tabs

→ browser_tabs { action: "list" }

Tab 0: "TodoMVC" - https://demo.playwright.dev/todomvc
Tab 1: "Example" - https://example.com
Tab 2: "Google" - https://google.com
* active: Tab 0

Open a new tab

→ browser_tabs { action: "new", url: "https://example.com" }
→ Returns snapshot of the new tab

Switch to a tab

→ browser_tabs { action: "select", index: 1 }
→ Returns snapshot of the selected tab

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