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 macOS 2026.8.2100.0
GA release for macOS Cloudflare One Client with improved split tunnel handling that no longer briefly blocks traffic during reconnects, support for non-RFC 1918 local IPv4 networks, faster connects with lower memory use, and numerous reliability fixes across DNS, reauthentication, and client stability.
Cloudflare One Client for Windows 2026.8.2100.0
This GA release improves split tunnel reliability, adds support for non-RFC 1918 local networks, optimizes connection performance with faster reconnections and lower memory usage, and includes numerous bug fixes for DNS, registration, and network handling. The client now features a service recovery mechanism that automatically restarts on system unlock and better handles large hosts files without blocking traffic.
Cloudflare One Client for Linux 2026.8.2100.0
New GA release for Linux with improved split tunnel handling that no longer briefly blocks traffic during reconnects, support for non-RFC 1918 local IPv4 networks, faster tunnel reconnections, and lower memory usage. Includes numerous stability and reliability fixes for DNS, reconnection behavior, and crash issues.