> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Render content

> Render a URL or HTML document and return its serialized HTML.

`cloudflare.renderContent` opens a page in Cloudflare Browser Run and returns the rendered HTML.

```ts automations/render-cloudflare-content.automation.ts theme={null}
import { automation, onDashboardRun, sendEmail } from "automate.ax"
import { cloudflare } from "automate.ax/cloudflare"

export default automation("Render product page", () => {
  onDashboardRun({ title: "Render product page" })
  const html = cloudflare.renderContent({
    accountId: "cloudflare-account-id",
    url: "https://example.com/products/1",
  })
  sendEmail({ subject: "Rendered product page", html })
})
```

## Inputs

Provide `accountId` and exactly one of `url` or `html`. `cacheTtl` controls Cloudflare's response cache in seconds and defaults to 5; set it to `0` to disable caching. Optional browser controls include timeouts, request and resource filters, authentication, cookies, scripts, styles, headers, JavaScript, media type, user agent, viewport, navigation settings, and wait conditions.

## Output

Returns the page's rendered HTML as a string. The action consumes Browser Run duration and is not replay-safe.
