Browser Run - Use Browser Run Quick Actions directly from Workers
1mo ago
Source
CloudflareBrowser Run - Use Browser Run Quick Actions directly from Workerscloudflare.comYou 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 { " compatibility_date " : "2026-03-24" , " browser " : { " binding " : "BROWSER" } } wrangler.toml compatibility_date = "2026-03-24" [ browser ] binding = "BROWSER" Then call any Quick Action directly from your Worker. For example, to capture a screenshot: JavaScript const screenshot = await env . BROWSER . quickAction ( "screenshot" , { url : " , } ) ; TypeScript const screenshot = await env . BROWSER . quickAction ( "screenshot" , { url : " , } ) ; 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 .
You might also wanna read
Cloudflare expands AI bot management tools with granular traffic controls for all customers
Cloudflare is celebrating the second "Content Independence Day" by expanding AI traffic management options for all website owners. Building
Workers - Simpler runtime types with @cloudflare/workers-types v5
Cloudflare·1d ago
Cache - Cache multiple versions of a URL with Vary
Cloudflare·2d ago
AI Search - Manage AI Search sync jobs with Wrangler CLI
Cloudflare·2d ago
Cloudflare One - Hostname routing for Cloudflare Mesh
Cloudflare·2d ago
Workers - Work across multiple accounts with Wrangler auth profiles
Cloudflare·2d ago

Comments
Sign in to join the conversation.
No comments yet. Be the first.