View as Markdown
Cloudflare Browser Rendering icon

Cloudflare Browser Rendering ACTION

Get HTML Content

Fetches rendered HTML content from provided URL or HTML. See the documentation
  • Action
  • Read only
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Cloudflare Browser Rendering account once, then configure and run Get HTML Content 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: "cloudflare_browser_rendering-get-html-content",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    cloudflare_browser_rendering: { authProvisionId: "apn_xxxxxxx" },
    html: "HTML",
    url: "URL",
  },
})

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.

Get HTML Content inputs
Property Type Description
html HTML string
Set the content of the page, eg: <h1>Hello World!!</h1>.
Optional
url URL string
URL to navigate to, eg. https://example.com.
Optional
viewportHeight Viewport - Height integer
The height of the viewport in pixels.
Optional
viewportWidth Viewport - Width integer
The width of the viewport in pixels.
Optional
viewportDeviceScaleFactor Viewport - Device Scale Factor integer
The device scale factor.
Optional
viewportHasTouch Viewport - Has Touch boolean
Whether the viewport has touch capabilities.
Optional
viewportIsLandscape Viewport - Is Landscape boolean
Whether the viewport is in landscape mode.
Optional
viewportIsMobile Viewport - Is Mobile boolean
Whether the viewport is in mobile mode.
Optional
userAgent User Agent string
Specify the browser user agent
Optional
additionalSettings Additional Settings object
Specify additional settings for the browser rendering.
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
cloudflare_browser_rendering-get-html-content
Version
0.0.2
App
Cloudflare Browser Rendering
Authentication
API key
Read-only
Yes
Destructive
No
Open world
Yes