browser.activate_tab
Switch the active tab in a browser session to a specific tab index for session management and navigation control.
Instructions
Switch the active session page to one tab index.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| index | Yes |
Implementation Reference
- controller/app/tool_gateway.py:1001-1003 (handler)Handler for "browser.activate_tab" which calls the manager's activate_tab method.
async def _activate_tab(self, payload: TabActionInput) -> dict[str, Any]: return await self.manager.activate_tab(payload.session_id, payload.index) - controller/app/tool_gateway.py:416-420 (registration)Registration of the "browser.activate_tab" tool in the McpToolGateway.
name="browser.activate_tab", description="Switch the active session page to one tab index.", input_model=TabActionInput, handler=self._activate_tab, ),