Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.09 KB

File metadata and controls

46 lines (33 loc) · 1.09 KB

chrome-ws

Chrome DevTools Protocol CLI - zero dependencies.

Installation

chmod +x chrome-ws

Quick Test

./chrome-ws start                        # Launch Chrome (auto-detects platform)
./chrome-ws new "https://example.com"   # Create tab
./chrome-ws navigate 0 "https://example.com"
./chrome-ws extract 0 "h1"              # Extract heading

Documentation

  • SKILL.md - Complete usage guide
  • EXAMPLES.md - Real-world examples

Testing

./test-raw.sh       # Raw JSON-RPC
./test-tabs.sh      # Tab management
./test-navigate.sh  # Navigation
./test-interact.sh  # Form interaction
./test-extract.sh   # Content extraction
./test-wait.sh      # Wait commands
./test-e2e.sh       # End-to-end workflow
./test-host-override.js  # Smoke test for host/port overrides

Requirements

  • Node.js 16+
  • Chrome with --remote-debugging-port=9222

Windows Notes

  • The CLI now binds to 127.0.0.1:9222 by default to avoid name-resolution issues on Windows.
  • Customize the connection via CHROME_WS_HOST / CHROME_WS_PORT if you forward DevTools elsewhere.