Skip to main content
cloudflare.captureSnapshot returns several representations from one Browser Run render.
automations/capture-cloudflare-snapshot.automation.ts

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.