Switch Tab
tab_switchSwitch to a specific browser tab using its index. Use -1 to jump to the most recently opened tab, getting a snapshot of the active tab.
Instructions
Switch to a different tab by index. Use -1 to switch to the most recently opened tab (useful for popups). Returns a snapshot of the newly active 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": {
"sessionId": "<sessionId>",
"tabIndex": "<tabIndex>"
},
"name": "tab_switch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID. | |
| tabIndex | Yes | Tab index to switch to. -1 for last (most recent) tab. |