releases.shpreview
Cloudflare/Cloudflare Changelog/Quick Actions accessible from Workers via quickAction() method

Quick Actions accessible from Workers via quickAction() method

1 featureThis release1 featureNew capabilitiesAI-tallied from the release notes

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:

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