All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Browser Run - Use Browser Run Quick Actions directly from Workers

1mo ago

Source

CloudflareBrowser Run - Use Browser Run Quick Actions directly from Workerscloudflare.com
Snippet from the RSS feed
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 { " 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

Comments

Sign in to join the conversation.

No comments yet. Be the first.