# Browser Use — Pipedream Connect

> Enable AI to automate the web

- API slug: `browser_use` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Artificial Intelligence (AI)
- Website: https://browser-use.com
- This page (HTML): https://pipedream.com/apps/browser-use
- Tools: 25 actions · 0 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: browser_use`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "browser_use",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Create Browser Session:
const result = await mcp.callTool({
  name: "browser_use-create-browser-session",
  arguments: {
    profileId: "Profile ID",
    proxyCountryCode: "Proxy Country Code",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Browser Use endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://api.browser-use.com/api/v1/tasks

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuYnJvd3Nlci11c2UuY29tL2FwaS92MS90YXNrcw?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "browser_use-create-browser-session",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    browser_use: { authProvisionId: "apn_xxxxxxx" },
    profileId: "Profile ID",
    proxyCountryCode: "Proxy Country Code",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (25)

### `browser_use-create-browser-session` — Create Browser Session (Write)

Create a standalone Browser Use browser session for direct browser control through CDP. Browser sessions are billed by runtime and can run up to 4 hours. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/create-browser-session.md

### `browser_use-create-profile` — Create Profile (Write)

Create a Browser Use profile to preserve cookies, local storage, and login state across sessions. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/create-profile.md

### `browser_use-create-session` — Create Session (Write)

Create an agent session, dispatch a task, or dispatch a follow-up task to an existing idle session. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/create-session.md

### `browser_use-create-workspace` — Create Workspace (Write)

Create a Browser Use workspace for persistent shared file storage across sessions. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/create-workspace.md

### `browser_use-delete-profile` — Delete Profile (Write)

Delete a Browser Use profile. This removes persisted browser state for that profile. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/delete-profile.md

### `browser_use-delete-session` — Delete Session (Write)

Delete an agent session. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/delete-session.md

### `browser_use-delete-workspace` — Delete Workspace (Write)

Delete a Browser Use workspace and its stored files. This cannot be undone. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/delete-workspace.md

### `browser_use-delete-workspace-file` — Delete Workspace File (Write)

Delete a file from a Browser Use workspace. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/delete-workspace-file.md

### `browser_use-get-account-billing` — Get Account Billing (Read-only)

Get Browser Use account billing details for the authenticated project. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/get-account-billing.md

### `browser_use-get-browser-session` — Get Browser Session (Read-only)

Get details for a standalone Browser Use browser session, including live URL, CDP URL, status, timeout, and cost fields. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/get-browser-session.md

### `browser_use-get-profile` — Get Profile (Read-only)

Get a Browser Use profile by ID. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/get-profile.md

### `browser_use-get-session` — Get Session (Read-only)

Get the current state, output, live URL, screenshot URL, and cost details for an agent session. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/get-session.md

### `browser_use-get-workspace` — Get Workspace (Read-only)

Get a Browser Use workspace by ID. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/get-workspace.md

### `browser_use-get-workspace-size` — Get Workspace Size (Read-only)

Get storage usage for a Browser Use workspace. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/get-workspace-size.md

### `browser_use-list-browser-sessions` — List Browser Sessions (Read-only)

List standalone Browser Use browser sessions for direct browser control via CDP. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/list-browser-sessions.md

### `browser_use-list-profiles` — List Profiles (Read-only)

List Browser Use profiles, optionally searching by profile name or user ID. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/list-profiles.md

### `browser_use-list-session-messages` — List Session Messages (Read-only)

List messages from a Browser Use agent session, including reasoning, tool calls, browser actions, screenshots, and results. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/list-session-messages.md

### `browser_use-list-sessions` — List Sessions (Read-only)

List Browser Use agent sessions for the authenticated project. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/list-sessions.md

### `browser_use-list-workspace-files` — List Workspace Files (Read-only)

List files and folders in a Browser Use workspace, optionally returning presigned download URLs. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/list-workspace-files.md

### `browser_use-list-workspaces` — List Workspaces (Read-only)

List Browser Use workspaces for persistent shared file storage across sessions. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/list-workspaces.md

### `browser_use-stop-session` — Stop Session (Write)

Stop the current task or stop the entire Browser Use agent session. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/stop-session.md

### `browser_use-update-browser-session` — Update Browser Session (Write)

Update a standalone Browser Use browser session. Currently, Browser Use supports the stop action. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/update-browser-session.md

### `browser_use-update-profile` — Update Profile (Write)

Update a Browser Use profile name or user ID. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/update-profile.md

### `browser_use-update-workspace` — Update Workspace (Write)

Update a Browser Use workspace name. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/update-workspace.md

### `browser_use-upload-workspace-files` — Upload Workspace Files (Write)

Create presigned upload URLs for Browser Use workspace files, and optionally upload local Pipedream files to those URLs. See the documentation

Full schema: https://pipedream.com/apps/browser-use/actions/upload-workspace-files.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
