Anchor Browser ACTION
Start Browser
Allocates a new browser session for the user, with optional configurations for ad-blocking, captcha solving, proxy usage, and idle timeout. See the documentation.
- Action
- Writes data
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Anchor Browser account once, then configure and run Start Browser from your backend or agent.
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: "anchor_browser-start-browser",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
anchor_browser: { authProvisionId: "apn_xxxxxxx" },
adblockConfigActive: true,
adblockConfigPopupBlockingActive: true,
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "anchor_browser-start-browser",
"configured_props": {
"anchor_browser": { "authProvisionId": "apn_xxxxxxx" },
"adblockConfigActive": true,
"adblockConfigPopupBlockingActive": true
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{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": "anchor_browser",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "anchor_browser-start-browser",
arguments: {
adblockConfigActive: true,
adblockConfigPopupBlockingActive: true,
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
adblockConfigActive Adblock Configuration - Active | boolean | Whether adblock configuration is active Required |
adblockConfigPopupBlockingActive Adblock Configuration - Popup Blocking Active | boolean | Whether popup blocking is active Required |
captchaConfigActive Captcha Configuration - Active | boolean | Whether captcha configuration is active Required |
headless Headless | boolean | Whether browser should be headless or headfull. Required |
proxyConfigType Proxy Configuration - Type | string | The type of proxy configuration to use. Eg. anchor_residential. Optional |
proxyConfigActive Proxy Configuration - Active | boolean | Whether proxy configuration is active Optional |
recordingActive Recording - Active | boolean | Whether recording is active Optional |
profileName Profile Name | string | The name of the profile to use for the browser session. Required Dynamic |
profilePersist Profile - Persist | boolean | Whether the profile should persist after the session ends. Required |
viewportWidth Viewport - Width | integer | The width of the viewport Required |
viewportHeight Viewport - Height | integer | The height of the viewport Required |
timeout Timeout | string | Maximum amount of time (in minutes) for the browser to run, before terminating. Defaults to -1, which disables the global timeout mechanism. Optional |
idleTimeout Idle Timeout | string | The amount of time (in minutes) the session waits for new connections after all others are closed before stopping. Defaults to 1. Setting it to -1 let the browser session continue forever [CAUTION - Keep track of long living sessions and manually kill them]. Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- anchor_browser-start-browser
- Version
- 0.0.2
- App
- Anchor Browser
- Authentication
- API key
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗