Examples
Use these Quick Actions examples to perform common tasks with a single HTTP request.
Fetch rendered HTML from a URL Capture fully rendered HTML from a webpage after JavaScript execution.
Take a screenshot of the visible viewport Capture a screenshot of a fully rendered webpage from a URL or custom HTML.
Take a screenshot of the full page Capture a screenshot of an entire scrollable webpage, not just the visible viewport.
Take a screenshot of an authenticated page Capture a screenshot of a webpage that requires login using cookies, HTTP Basic Auth, or custom headers.
Generate a PDF Generate a PDF from a URL or custom HTML and CSS.
Extract Markdown from a URL Convert a webpage's content into Markdown format.
Capture a snapshot from a URL Capture both the rendered HTML and a screenshot from a webpage in a single request.
Scrape headings and links from a URL Extract structured data from specific elements on a webpage using CSS selectors.
Capture structured data with an AI prompt and JSON schema Extract structured data from a webpage using AI using a prompt or JSON schema.
Retrieve links from a URL Retrieve all links from a webpage, including hidden ones.
Crawl a documentation site Crawl documentation pages with include/exclude patterns to build a knowledge base.
Extract structured product data with AI Crawl a product catalog and extract structured JSON data using AI.
Fast static content fetch Crawl static sites without JavaScript rendering for faster results.
Use Puppeteer, Playwright, or Stagehand for dynamic, multi-step browser automation within Cloudflare Workers.
Get page metrics with Puppeteer Use Puppeteer to navigate to a page and retrieve performance metrics in a Worker.
Take a screenshot with Playwright Use Playwright to navigate to a page, interact with elements, and capture a screenshot.
Run test assertions with Playwright Use Playwright assertions to test web applications in a Worker.
Generate a trace with Playwright Capture detailed execution logs for debugging with Playwright tracing.
Reuse browser sessions Improve performance by reusing browser sessions across requests.
Persist sessions with Durable Objects Use Durable Objects to maintain long-running browser sessions.
AI-powered browser automation with Stagehand Use natural language instructions to automate browser tasks with AI.
Use CDP to connect to Browser Run from any environment using the Chrome DevTools Protocol.
Connect Puppeteer from your local machine Run Puppeteer scripts against Browser Run from Node.js on your local machine, CI/CD, or any external server.
Configure AI agents with MCP Set up Claude Desktop, Claude Code, Cursor, or other MCP clients to control browsers via Browser Run.