Browserbase tool Integration for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Browserbase tool MCP or direct API to automate browsing, run Playwright or Selenium scripts, perform web scraping, and monitor browser tasks through natural language.
Browserbase tool Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Supported Tools

Tools
Create a new browser contextTool to create a new browser context.
Retrieve a browser contextTool to retrieve details of a specific browser context.
Update Browser ContextTool to update a specific browser context.
Create Browser SessionTool to create a new browser session.
Retrieve a browser sessionTool to retrieve details of a specific browser session.
Retrieve Session Debug URLsTool to retrieve live debug urls for a specific session.
Download Session ArtifactsTool to download files from a specific session.
Retrieve Session LogsTool to retrieve logs of a specific session.
List Browser SessionsTool to list all browser sessions.
Update Browser SessionTool to update the status of a specific browser session.

Connect Browserbase tool MCP Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Browserbase tool tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Download session artifacts for session ID 12345')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Connect Browserbase tool API Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio_openai
Install the Composio SDK

Initialize Composio and Create Tool Router Session

python
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
openai = OpenAI()
session = composio.create(user_id='your-user-id')
Import and initialize Composio client, then create a Tool Router session

Execute Browserbase tool Tools via Tool Router with Your Agent

python
tools = session.tools
response = openai.responses.create(
  model='gpt-4.1',
  tools=tools,
  input=[{
    'role': 'user',
    'content': 'Launch a headless browser and screenshot homepage of example.com'
  }]
)
result = composio.provider.handle_tool_calls(
  response=response,
  user_id='your-user-id'
)
print(result)
Get tools from Tool Router session and execute Browserbase tool actions with your Agent

Why Use Composio?

AI Native Browserbase tool Integration

  • Supports both Browserbase tool MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for launching browsers, running scripts, and monitoring sessions

Managed Auth

  • Built-in API key management so you don't have to juggle credentials
  • Central place to manage and revoke Browserbase tool access
  • Per user and per environment security instead of hard-coded secrets

Agent Optimized Design

  • Tools tuned for reliable automation and robust script execution
  • Comprehensive logs so you can review each browser session and its results

Enterprise Grade Security

  • Fine-grained RBAC so you decide which agents and users can launch or control browsers
  • Scoped, least privilege access to browser resources and scripts
  • Full audit trail of agent actions for compliance and review

Frequently Asked Questions

Do I need my own developer credentials to use Browserbase tool with Composio?

Yes, Browserbase tool requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.