browser_cdp
Skill by agentscope-ai
Connects an AI assistant to Chrome through the Chrome DevTools Protocol. It covers scanning CDP ports, attaching to a running browser, and sharing one browser across agents or tools. Meant for users who explicitly ask for CDP or remote debugging.
Install browser_cdp
Built from the published package, never by AI.
git clone --depth 1 https://github.com/agentscope-ai/QwenPaw /tmp/QwenPaw && mkdir -p ~/.claude/skills && cp -r /tmp/QwenPaw/src/qwenpaw/agents/tools/deprecated_browser/skills/browser_cdp-en ~/.claude/skills/browser-cdpRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/agentscope-ai/QwenPaw /tmp/QwenPaw && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/QwenPaw/src/qwenpaw/agents/tools/deprecated_browser/skills/browser_cdp-en ~/.gemini/antigravity-cli/skills/browser-cdpAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
browser_cdp is a QwenPaw skill for explicit Chrome DevTools Protocol (CDP) use. It lets the assistant scan local CDP ports with list_cdp_targets, attach to an already running Chrome with connect_cdp, and launch the browser with a fixed cdp_port so other local tools can attach. By default the browser opens no debugging port and is managed directly by Playwright.
The skill is for users who explicitly ask to connect to an existing browser, specify a port, or share one browser across agents or tools. Stopping an external browser only disconnects it, while stopping a browser QwenPaw launched also terminates it. The source warns that exposing a debugging port can expose sensitive data, so the user should be warned first. The reference is marked as deprecated in favor of the unified browser tool when experimental mode is enabled.
Written from the project's SKILL.md and checked against it.
What it can do
- list_cdp_targetsScans local CDP ports, by default in the 9000 to 10000 range, or a single or custom port range.
- connect_cdpAttaches to an existing Chrome through a CDP endpoint such as http://localhost:9222.
- start with cdp_portLaunches the browser with an explicitly chosen debugging port for other local tools.
- stopDisconnects from the browser, and terminates it only if QwenPaw launched it.
- Shared browser accessLets multiple agents or tools use a single browser instance through a fixed CDP port.
What you need
- Chrome browser
- QwenPaw runtime
- Playwright (manages the browser by default)
Try asking
- Connect to the Chrome I already have open and check my current tab.
- Scan local ports for any Chrome with remote debugging enabled.
- Start the browser on port 9222 so another tool can attach to it.
Good to know
- Only one browser can be running or connected per workspace at a time.
- An explicitly specified cdp_port fails if the port is already in use, with no forced reuse.
- There is a small race window when claiming a port, and no automatic retry.
- Idle auto-stop for external CDP only disconnects and does not close the user's browser.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: src/qwenpaw/agents/tools/deprecated_browser/skills/browser_cdp-en/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB
Alternatives to browser_cdp
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
browser_cdp: common questions
Does the browser open a debugging port by default?
No. The default start opens no debugging port, and the browser is managed directly by Playwright. A port is only opened when cdp_port is passed.
What happens when I stop a browser connected with connect_cdp?
stop only disconnects. It does not close the external browser process, because QwenPaw did not launch it.
Can several workspaces use the same fixed CDP port?
No. If workspaces request the same cdp_port, the later one fails because the port is already in use.
How do I install browser_cdp?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is browser_cdp free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is browser_cdp safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to browser_cdp?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
