claude-code - 💡(How to fix) Fix Community Workaround for #22903 — CDP Connector gives Claude browser eyes/hands today

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

Community Workaround for #22903 — CDP Connector for Browser Screen Access

This is a working workaround for the feature requested in #22903 (bidirectional visual streaming / screen share for Claude Code), specifically for browser-based use cases.

Code Example

Start-Process msedge -ArgumentList "--remote-debugging-port=9222","--user-data-dir=C:\Temp\edge-debug","--remote-allow-origins=*"

---

# Read active tab content
python cdp_connector.py --text

# Execute JavaScript in page context
python cdp_connector.py --js "document.cookie"

# Click an element
python cdp_connector.py --click "#submit"

# Fill a form field
python cdp_connector.py --fill "#username" "admin"

# Navigate
python cdp_connector.py --goto "http://target"

# Dump cookies
python cdp_connector.py --cookies

# Clean tab screenshot -> saved to fixed path Claude can Read
python cdp_connector.py --screenshot
RAW_BUFFERClick to expand / collapse

Community Workaround for #22903 — CDP Connector for Browser Screen Access

This is a working workaround for the feature requested in #22903 (bidirectional visual streaming / screen share for Claude Code), specifically for browser-based use cases.

What this solves

For anyone needing Claude Code to "see" and interact with a browser — web CTF challenges, live app debugging, form automation — the Chrome DevTools Protocol (CDP) provides programmatic access that is actually better than pixel-level screen sharing for these cases. You get structured DOM data, not screenshots to interpret.

How it works

Launch Edge or Chrome with the debug flag:

Start-Process msedge -ArgumentList "--remote-debugging-port=9222","--user-data-dir=C:\Temp\edge-debug","--remote-allow-origins=*"

Then Claude drives the browser via a Python CDP connector:

# Read active tab content
python cdp_connector.py --text

# Execute JavaScript in page context
python cdp_connector.py --js "document.cookie"

# Click an element
python cdp_connector.py --click "#submit"

# Fill a form field
python cdp_connector.py --fill "#username" "admin"

# Navigate
python cdp_connector.py --goto "http://target"

# Dump cookies
python cdp_connector.py --cookies

# Clean tab screenshot -> saved to fixed path Claude can Read
python cdp_connector.py --screenshot

Claude reads DOM, executes JS, interacts with forms, grabs cookies and session state — all without native screen-sharing support in Claude Code.

For non-browser content (VM windows, binary challenge GUIs), a companion screen_watcher.py using mss handles pixel-level capture to a fixed path that Claude reads with its Read tool.

Code

Both scripts: https://gist.github.com/Insider77Circle/4467352872d937055f5932c21f5d4b0e

Relation to #22903

This doesn't replace the native feature request — full bidirectional screen streaming would cover all apps, not just browsers. But for the majority of web-focused use cases this works right now with no Claude Code changes required.

Built as part of the NEXUS pipeline at @Insider77Circle.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Community Workaround for #22903 — CDP Connector gives Claude browser eyes/hands today