chrome-cdp

Installation
SKILL.md

Adapted from pasky/chrome-cdp-skill at commit ffea76a24b0471663ddd9d9f24335bbc442b6266 (MIT).

Chrome CDP

Lightweight Chrome DevTools Protocol CLI. Connects directly via WebSocket — no Puppeteer, works with 100+ tabs, instant connection. Resolve SKILL_DIR to this file's parent directory.

Prerequisites

  • Chrome (or Chromium, Brave, Edge, Vivaldi) with remote debugging enabled: open chrome://inspect/#remote-debugging and toggle the switch
  • Node.js 22+ (uses built-in WebSocket)
  • If your browser's DevToolsActivePort is in a non-standard location, set CDP_PORT_FILE to its full path

Commands

All commands use node "$SKILL_DIR/scripts/cdp.mjs". The <target> is a unique targetId prefix from list; copy the full prefix shown in the list output (for example 6BE827FA). The CLI rejects ambiguous prefixes.

List open pages

Installs
12
Repository
legout/skills
First Seen
Sep 7, 2026