switch_tab
Switch between open browser tabs to interact with content in different tabs. Use when links open new tabs or you need to access multiple pages during web automation sessions.
Instructions
Switch the active browser tab when multiple tabs are open in the session. Common scenario: clicking a link that opens a chat in a new tab requires switching to that tab to interact with it. Use get_current_page_info first to see all available tabs and their indices.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
sessionId | Yes | Session ID obtained from initialize_session | |
tabIndex | Yes | Zero-based index of the tab to switch to (0 = first tab, 1 = second tab, etc.). Use get_current_page_info to see available tabs. |
Input Schema (JSON Schema)
{
"properties": {
"sessionId": {
"description": "Session ID obtained from initialize_session",
"type": "string"
},
"tabIndex": {
"description": "Zero-based index of the tab to switch to (0 = first tab, 1 = second tab, etc.). Use get_current_page_info to see available tabs.",
"type": "number"
}
},
"required": [
"sessionId",
"tabIndex"
],
"type": "object"
}