View as Markdown
BrowserStack icon

BrowserStack ACTION

Take Screenshot

Generate screenshots for a URL across multiple browsers and devices. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's BrowserStack account once, then configure and run Take Screenshot 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: "browserstack-take-screenshot",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    browserstack: { authProvisionId: "apn_xxxxxxx" },
    url: "URL",
    browser: ["Browser"],
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Take Screenshot inputs
Property Type Description
url URL string
The URL of the desired page to screenshot
Required
browser Browser string[]
The version of the browser to use
Required Dynamic
winRes Windows Resolution string
Screen resolution for browsers on Windows
Optional
macRes Mac Resolution string
Screen resolution for browsers on OSX
Optional
quality Quality string
Quality of the screenshot
Optional
waitTime Wait Time (seconds) integer
Time in seconds to wait before taking the screenshot
Optional
orientation Orientation string
Screen orientation for mobile devices
Optional
local Local boolean
Set to true if the page is local and a Local Testing connection has been set up
Optional
callbackUrl Callback URL string
A public URL where results will be posted once processing is complete
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
browserstack-take-screenshot
Version
0.0.1
App
BrowserStack
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes