Skip to main content
Glama

shutdown_browser

Close the browser and end the WhatsApp automation session to stop background processes and free system resources.

Instructions

Close the browser context and stop the WhatsApp automation session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual implementation of the shutdown logic, which calls self.stop().
    async def shutdown(self) -> dict[str, Any]:
        await self.stop()
        return {"stopped": True}
  • The MCP tool registration for 'shutdown_browser', which delegates to self.client.shutdown().
    "shutdown_browser": ToolDefinition(
        name="shutdown_browser",
        description="Close the browser context and stop the WhatsApp automation session.",
        input_schema={"type": "object", "properties": {}, "additionalProperties": False},
        handler=lambda _: self.client.shutdown(),
    ),

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/ekaksher/whatsapp-mcp'

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