Quick Actions accessible from Workers via quickAction() method
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:
-
wrangler.jsonc
<div><div><span>{</span></div></div><div><div><span> </span><span>"</span><span>compatibility_date</span><span>"</span><span>:</span><span> </span><span>"2026-03-24"</span><span>,</span></div></div><div><div><span> </span><span>"</span><span>browser</span><span>"</span><span>:</span><span> </span><span>{</span></div></div><div><div><span> </span><span>"</span><span>binding</span><span>"</span><span>:</span><span> </span><span>"BROWSER"</span></div></div><div><div><span> </span><span>}</span></div></div><div><div><span>}</span></div></div> -
wrangler.toml
<div><div><span>compatibility_date</span><span> </span><span>=</span><span> </span><span>"2026-03-24"</span></div></div><div><div> </div></div><div><div><span>[</span><span>browser</span><span>]</span></div></div><div><div><span>binding</span><span> </span><span>=</span><span> </span><span>"BROWSER"</span></div></div>
Then call any Quick Action directly from your Worker. For example, to capture a screenshot:
-
JavaScript
<div><div><span>const</span><span> </span><span>screenshot</span><span> </span><span>=</span><span> </span><span>await</span><span> </span><span>env</span><span>.</span><span>BROWSER</span><span>.</span><span>quickAction</span><span>(</span><span>"screenshot"</span><span>,</span><span> </span><span>{</span></div></div><div><div><span><span> </span></span><span>url</span><span>:</span><span> </span><span>"https://www.cloudflare.com/"</span><span>,</span></div></div><div><div><span>}</span><span>)</span><span>;</span></div></div> -
TypeScript
<div><div><span>const</span><span> </span><span>screenshot</span><span> </span><span>=</span><span> </span><span>await</span><span> </span><span>env</span><span>.</span><span>BROWSER</span><span>.</span><span>quickAction</span><span>(</span><span>"screenshot"</span><span>,</span><span> </span><span>{</span></div></div><div><div><span><span> </span></span><span>url</span><span>:</span><span> </span><span>"https://www.cloudflare.com/"</span><span>,</span></div></div><div><div><span>}</span><span>)</span><span>;</span></div></div>
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.
Fetched May 28, 2026



