switch_tab
Navigate to a specific browser tab by its index to manage multiple open tabs during automation.
Instructions
Switch to a specific browser tab using its index.
Purpose
Allows the agent to move between multiple open tabs in the same browser session.
Always call get_tabs first to understand available tab indexes.
Parameters
session_id : str Active browser session identifier. index : int Index of the tab to switch to.
Returns
dict { "session_id": str, "status": str, "message": str }
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": {
"session_id": "<session_id>",
"index": "<index>"
},
"name": "switch_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| session_id | Yes |