cloudflare-browser

Control headless Chrome in Cloudflare Workers via WebSocket CDP.

9.9k|1.7k|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/cloudflare/moltworker --skill cloudflare-browser-cloudflare
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-browser
Source: https://github.com/cloudflare/moltworker/tree/main/skills/cloudflare-browser
Command: npx skills add https://github.com/cloudflare/moltworker --skill cloudflare-browser-cloudflare

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ws, and includes scripts (resource) components.

What problem does it solve?

This skill enables automated browser interactions within Cloudflare Workers by controlling a headless Chrome instance through Cloudflare's Browser Rendering (CDP) WebSocket. It simplifies screenshots, page navigation, scraping, and video capture without leaving the Cloudflare environment.

Core Features & Use Cases

  • Headless browser control: Connect to a Cloudflare-provided CDP endpoint and run common actions like navigate, capture screenshots, and evaluate JavaScript.
  • Visual content capture: Create screenshots and short video captures of multiple pages for QA, monitoring, or archiving.
  • Scriptable automation: Integrate with OpenClaw profiles to drive browser tasks from automation workflows.
  • Use Case: Generate a screenshot gallery of a product page, or render a page to video for demos inside Cloudflare Workers.

Quick Start

Use the screenshot script to capture a page: node /path/to/skills/cloudflare-browser/scripts/screenshot.js https://example.com output.png Or generate a multi-page video: node /path/to/skills/cloudflare-browser/scripts/video.js "https://site1.com,https://site2.com" output.mp4

Frequently Asked Questions about cloudflare-browser

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I take a screenshot with headless Chrome in Cloudflare Workers?

To take a screenshot with headless Chrome in Cloudflare Workers, run the provided screenshot script via Node.js. You pass the target URL and output filename as arguments, and the Skill connects to the CDP endpoint to capture the page.

Can I capture video of multiple web pages inside a Cloudflare Worker?

Yes, you can capture video of multiple web pages inside a Cloudflare Worker. The Skill includes a video script that accepts a comma-separated list of URLs and generates an MP4 file by navigating through them in the headless browser.

Do I need a CDP secret to use Cloudflare Browser Rendering for scraping?

Yes, you need a CDP_SECRET and a configured cdpUrl in the browser profile to use Cloudflare Browser Rendering for scraping. The Skill uses the ws library to establish WebSocket CDP communication with the sandboxed environment.

What is the best way to automate visual QA monitoring in a Cloudflare sandbox?

The best way to automate visual QA monitoring in a Cloudflare sandbox is by using headless browser control. This Skill connects to a Cloudflare-provided CDP endpoint to render pages, evaluate JavaScript, and capture screenshots or video.

Does Cloudflare Browser support single-page and multi-page scraping workflows?

Yes, Cloudflare Browser supports both single-page and multi-page scraping workflows. It automates browser control inside the Cloudflare sandbox to navigate pages and capture content for lightweight scraping or archiving tasks.