switch_tab
Switch browser focus to any open tab by its zero-based index to access pages opened in popups or by link targets, returning tab count and page state without re-navigating.
Instructions
Switch the browser focus to a different open tab by its zero-based index. Returns the tab count (plus page_indices, the valid indices, when they are not contiguous) and a page_state object reflecting the switched-to tab's content (headings, landmarks, links). Use to access pages opened by link targets, popups, or forked sub-agents without re-navigating.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "switch_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Zero-based tab index to switch to (0 = first tab). Use the tab count from previous responses to determine valid indices. |