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
| Name | Required | Description | Default |
|---|---|---|---|
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} - src/whatsapp_mcp/mcp_server.py:218-223 (registration)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(), ),