Browser Run - Use Browser Run Quick Actions directly from Workers
Key Points
- Call Quick Actions from Workers
- No API tokens or external HTTP requests
- Requires compatibility_date 2026-03-24+
Summary
Cloudflare Workers can now invoke Browser Run Quick Actions directly via the browser binding's quickAction() method. This removes the need for API tokens or external HTTP calls, reducing implementation complexity and latency by keeping traffic on Cloudflare's network.
Key Points
- Add a browser binding to your Wrangler config (wrangler.toml or wrangler.jsonc) and set
compatibility_dateto2026-03-24or later.- Example (TOML): [ browser ] binding = "BROWSER"
- Call the method directly from a Worker:
await env.BROWSER.quickAction("screenshot", { url: "https://www.cloudflare.com/" }). - No API tokens or external HTTP requests required — calls run over Cloudflare's internal network.
- Supported Quick Actions include:
- screenshots, PDFs (custom styling, headers, footers)
- extract HTML, convert to Markdown, extract structured JSON via AI
- scrape elements with CSS selectors, get all links
- capture snapshots (HTML + screenshot in a single request)
- Keep your Worker compatibility date at or after
2026-03-24to usequickAction().
Where to go next
- Add the binding to your Wrangler config, update the compatibility date, and call
env.BROWSER.quickAction(...)in your Worker. For full action options and parameters, see the Browser Run Quick Actions documentation.