> ## 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.

# Capture snapshot

> Render a page and return multiple content representations at once.

`cloudflare.captureSnapshot` returns several representations from one Browser Run render.

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

export default automation("Archive release page", () => {
  onDashboardRun({ title: "Archive release page" })
  const snapshot = cloudflare.captureSnapshot({
    accountId: "cloudflare-account-id",
    formats: ["content", "markdown"],
    url: "https://example.com/releases/latest",
  })
  sendEmail({ subject: "Release snapshot", text: snapshot.markdown ?? "" })
})
```

## Inputs

Provide `accountId` and exactly one of `url` or `html`. `formats` accepts at least two unique values from `content`, `markdown`, `screenshot`, and `accessibilityTree`; omit it to use Cloudflare's default formats. `screenshotOptions` customizes the optional base64 screenshot. `cacheTtl` defaults to 5 seconds, and the common Browser Run page controls are available.

## Output

Returns the requested HTML, Markdown, base64 screenshot, and accessibility tree fields. The action consumes Browser Run duration and is not replay-safe.
