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