Skip to main content
Glama

browser.create_session

Launch a new browser session with optional start URL, proxy settings, authentication profiles, and custom user agents for automated web interactions.

Instructions

Create a new browser session and optionally navigate to a start URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
start_urlNo
storage_state_pathNo
auth_profileNo
proxy_serverNo
proxy_usernameNo
proxy_passwordNo
user_agentNo
totp_secretNo

Implementation Reference

  • The _create_session method in McpToolGateway is the handler implementation for the "browser.create_session" MCP tool. It delegates the logic to the manager's create_session method.
    async def _create_session(self, payload: CreateSessionRequest) -> dict[str, Any]:
        return await self.manager.create_session(
            name=payload.name,
            start_url=payload.start_url,
            storage_state_path=payload.storage_state_path,
            auth_profile=payload.auth_profile,
            request_proxy_server=payload.proxy_server,
            request_proxy_username=payload.proxy_username,
            request_proxy_password=payload.proxy_password,
            user_agent=payload.user_agent,
            totp_secret=payload.totp_secret,
        )
  • Tool registration for "browser.create_session" within the McpToolGateway class.
    ToolSpec(
        name="browser.create_session",
        description="Create a new browser session and optionally navigate to a start URL.",
        input_model=CreateSessionRequest,
        handler=self._create_session,
    ),

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