browser_tabs
List, create, close, or select a browser tab.Operation to perform. Available actions:
list- List all open tabscreate- Create a new tabclose- Close a tabselect- Switch to a specific tab
Tab index, used for close/select actions. If omitted for close, current tab is closed.
Usage Examples
List All Tabs
Get a list of all currently open tabs with their indexes and URLs:Create a New Tab
Open a new blank tab:browser_navigate to navigate to a URL.
Switch to a Specific Tab
Switch to a tab by its index:Close a Specific Tab
Close a tab by its index:Close the Current Tab
Close the currently active tab without specifying an index:Common Workflows
Compare Content Across Multiple Pages
- Navigate to the first page
- Create a new tab
- Navigate to the second page
- Take snapshots or screenshots of both
- Switch between tabs to compare
Managing Multiple Workflows
When working with multiple web applications or workflows:Best Practices
Track Tab Indexes
Track Tab Indexes
Tab indexes can change when tabs are closed. Always use the
list action to get current indexes before performing select or close operations.Clean Up Unused Tabs
Clean Up Unused Tabs
Close tabs when you’re done with them to avoid confusion and reduce resource usage.
Descriptive Workflow
Descriptive Workflow
When working with multiple tabs, maintain a clear mental model or documentation of which tab contains what content.
Related Tools
Core Automation
Navigate and interact with pages in tabs
Page Snapshot
Capture content from different tabs

