This guide walks you through connecting Browserbase tool to Mastra AI using the Composio tool router. By the end, you'll have a working Browserbase tool agent that can start a new headless browser session now, download all artifacts from last session, retrieve debug urls for active sessions, list all recent sessions with errors through natural language commands.
This guide will help you understand how to give your Mastra AI agent real control over a Browserbase tool account through Composio's Browserbase tool MCP server.
Before we dive in, let's take a quick look at the key ideas and tools involved.









