Skip to main content
Glama

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
NameRequiredDescriptionDefault
session_idYes
indexYes

Implementation Reference

  • 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)
  • 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,
    ),

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LvcidPsyche/auto-browser'

If you have feedback or need assistance with the MCP directory API, please join our Discord server