Browser Run Quick Actions directly from Workers
Workers can now call Browser Run Quick Actions directly using the quickAction() method on the browser binding, enabling screenshots, PDFs, content extraction, and more without external API tokens or HTTP requests. This improves latency and simplifies Worker code by communicating directly over Cloudflare's network.
You can now call Browser Run Quick Actions directly from a Cloudflare Worker using the quickAction() method on the browser binding. This simplifies how Workers interact with Browser Run by removing the need for API tokens or external HTTP requests. Your Worker communicates with Browser Run directly over Cloudflare's network, resulting in simpler code and lower latency.
With the quickAction() method you can:
- Capture screenshots from URLs or HTML
- Generate PDFs with custom styling, headers, and footers
- Extract HTML content from fully rendered pages
- Convert pages to Markdown
- Extract structured JSON using AI
- Scrape elements with CSS selectors
- Get all links from a page
- Capture snapshots (HTML + screenshot in one request)
To get started, add a browser binding to your Wrangler configuration:
{
"compatibility_date": "2026-03-24",
"browser": {
"binding": "BROWSER"
}
}compatibility_date = "2026-03-24"
[browser]
binding = "BROWSER"
Then call any Quick Action directly from your Worker. For example, to capture a screenshot:
const screenshot = await env.BROWSER.quickAction("screenshot", {
url: "https://www.cloudflare.com/",
});const screenshot = await env.BROWSER.quickAction("screenshot", {
url: "https://www.cloudflare.com/",
});
The quickAction() method requires a compatibility date of 2026-03-24 or later.
For setup instructions and the full list of available actions, refer to Browser Run Quick Actions.
Source: original entry ↗
More from Cloudflare
Follow Cloudflare to get its new changes in your feed and email digest.
Cloudflare One Client for Windows hotfix - trusted certificate chains
A new GA release for Windows Cloudflare One Client is available, addressing an issue with building trusted certificate chains.
Cloudflare One Client for macOS - Trusted Certificate Chain Fix
A new GA release of the macOS Cloudflare One Client is available. This hotfix addresses an issue with building trusted certificate chains.
Cloudflare One Client for Linux
A new GA release of Cloudflare One Client for Linux is now available. This hotfix addresses an issue with building trusted certificate chains.