Chrome DevTools Protocol
A browser automation protocol used here to let a Claude Code agent control Chrome programmatically.
Key Highlights
- Chrome DevTools Protocol is a foundational layer for letting AI agents control Chrome through code.
- It enables practical agent workflows such as clicking, navigation, JavaScript injection, screenshots, and console task automation.
- Recent examples connect CDP to Claude Code, AWS console automation, WebMCP experiments, and visual feedback loops in JS Paint.
- For AI PMs, CDP is useful for evaluating when browser automation is viable versus when direct APIs or structured tools are better.
- CDP-based workflows can be benchmarked with observable browser state and screenshot comparisons, making agent performance easier to measure.
Chrome DevTools Protocol
Overview
Chrome DevTools Protocol (CDP) is a low-level browser automation and debugging protocol that exposes programmable control over Chrome. It lets agents and developer tools inspect pages, execute JavaScript, capture screenshots, interact with DOM elements, simulate input, and monitor network or console activity. In the context of AI agents, CDP is often the bridge that turns a language model from a text-only system into one that can act inside a real browser.For AI Product Managers, CDP matters because it is an enabling layer for agentic browser workflows: web testing, UI automation, console operations, screenshot-based evaluation, and tool invocation inside live browser sessions. Across the mentions here, CDP appears as the mechanism behind Claude Code-driven browser control, AWS console automation, and experiments that combine browser access with structured tool interfaces like WebMCP. That makes it strategically important for anyone evaluating browser agents, reliability tradeoffs, or product opportunities around AI-driven web interaction.
Key Developments
- 2026-02-19 — A `browser.js` setup used Chrome DevTools Protocol on port 9222 to let a Claude Code Sonnet 4.6 agent execute browser commands such as open, list, elements, and click in Chrome.
- 2026-02-23 — Simon Willison demonstrated WebMCP with Chrome DevTools Protocol, showing how a Python client could register and interact with structured browser tools over CDP, with the goal of reducing brittle UI automation.
- 2026-03-09 — Cloud Code used the Chrome automation CLI via Chrome DevTools Protocol to control Chrome for AWS console workflows, including S3 hosting, VM provisioning, and deployment tasks.
- 2026-03-17 — Claude Code used Chrome DevTools Protocol automation plus screenshot comparison in JS Paint to iteratively reproduce drawings, improving visual similarity through repeated browser actions and redraw loops.
Relevance to AI PMs
1. Evaluate browser agent feasibility and reliability CDP gives teams a concrete way to prototype browser-based agents before building custom integrations. PMs can use it to assess whether a workflow should be solved with direct APIs, structured tools, or UI automation, and where brittleness or maintenance costs may emerge.2. Design measurable agent loops
The JS Paint example shows how CDP can be combined with screenshot capture and iterative feedback to create observable, benchmarkable agent behavior. PMs can apply this pattern to tasks where success needs to be validated visually or through browser state checks.
3. Accelerate internal tooling and ops automation
CDP can help product and engineering teams automate web-console-heavy tasks, demos, QA flows, and operational runbooks. For PMs, this is useful for quickly validating user journeys, agent experiences, and support workflows without waiting for full productized integrations.
Related
- claude-code — A recurring agent runtime that uses CDP to control Chrome programmatically.
- claude-code-sonnet-46 — Referenced in an early setup where a Claude Code Sonnet 4.6 agent used CDP-backed browser commands.
- chrome — The browser CDP controls; Chrome is the primary runtime environment for these agent interactions.
- chrome-automation-cli — A CLI layer used with CDP to drive Chrome in browser automation scenarios.
- cloud-code — Used CDP-backed browser automation for AWS console tasks.
- browserjs — A browser control script/interface that exposed CDP-powered actions such as open and click.
- webmcp — A proposed structured browser tool model demonstrated over CDP, aiming to reduce fragile UI-only automation.
- js-paint — An example application where CDP enabled iterative drawing automation and screenshot-based evaluation.
- simon-willison — Highlighted a WebMCP + CDP demo that framed CDP as infrastructure for more structured agent-browser interaction.
Newsletter Mentions (4)
“#10 ▶️ Can Claude Code Learn To Draw In MS PAINT? All About AI Claude Code leverages Chrome DevTools Protocol automation and screenshot‐based comparison to iteratively replicate user drawings in JS Paint until reaching 95% pixel similarity.”
Today's top 25 insights for PM Builders, ranked by relevance from Blogs, X, YouTube, and LinkedIn. #10 ▶️ Can Claude Code Learn To Draw In MS PAINT? All About AI Claude Code leverages Chrome DevTools Protocol automation and screenshot‐based comparison to iteratively replicate user drawings in JS Paint until reaching 95% pixel similarity. Claude Code injects JavaScript via Chrome CDP to control mouse movements and select tools directly in JS Paint with no preloaded skills. Each canvas state is captured and compared against a baseline image (e.g. fisherman.png) using a custom screenshot tool, triggering redraw loops until 95% similarity is achieved. In the “AI agent 2” text replication test, the similarity score improved from 78.1% to 92% and finally 95% after automated flips and shape refinements of the letters.
“Cloud Code setup leverages the Chrome automation CLI and Chrome DevTools Protocol to control Chrome for AWS console interactions.”
#2 ▶️ 3 AI Agent Browser Automation Challenges That Keep Getting Harder All About AI Uses a Cloud Code AI browser agent with the Chrome automation CLI (via Chrome DevTools Protocol) to navigate the AWS console and complete three challenges: S3 static web hosting, Ubuntu VM provisioning with graphical remote desktop and YouTube playback, and deploying a video upload/playback web app. Cloud Code setup leverages the Chrome automation CLI and Chrome DevTools Protocol to control Chrome for AWS console interactions. Level one took 40 minutes: created S3 bucket named "EJ Oslo site 2026", uploaded "me.png" and "index.html", enabled static website hosting, unblocked public access, and applied a bucket policy via AWS CloudShell CLI. Level three deployed a video upload application via the AWS console and CloudShell, implemented HTML/CSS front end, uploaded a 200 MB video file, and generated a public playback URL that successfully streamed the uploaded video.
“#5 📝 Simon Willison Research WebMCP + Chrome DevTools Protocol Demo - Demo of WebMCP, a proposed browser API for exposing structured, callable tools to AI agents, showing how to register and interact with WebMCP tools from a Python client over the Chrome DevTools Protocol.”
#5 📝 Simon Willison Research WebMCP + Chrome DevTools Protocol Demo - Demo of WebMCP, a proposed browser API for exposing structured, callable tools to AI agents, showing how to register and interact with WebMCP tools from a Python client over the Chrome DevTools Protocol. The project aims to reduce reliance on brittle UI automation.
“Setting up a browser.js file that uses Chrome DevTools Protocol on port 9222 to enable a Claude Code Sonnet 4.6 AI agent to execute open, list, elements, and click commands in Chrome.”
The article explains how CDP is used to automate browser navigation and page interaction for an agent.
Related
Anthropic’s coding product/blog referenced in a customer story about Cognition’s use of Claude Fable 5. For AI PMs, it highlights enterprise coding adoption narratives.
A developer and AI commentator quoted here in relation to OpenAI’s clarification of ChatGPT Work behavior. He is relevant as an interpreter and critic of product messaging.
Cloud Code appears to be a coding agent or coding workflow used to generate launch videos from websites. The newsletter describes it as working with Fable 5 and HyperFrames.
A W3C-backed browser extension that exposes website functionality to MCP-capable agents. It lets developers register site functions as structured tools in the browser.
Stay updated on Chrome DevTools Protocol
Get curated AI PM insights delivered daily — covering this and 1,000+ other sources.
Subscribe Free