chrome-ctl
v1.1.0
Published
Lightweight Chrome CLI tool using CDP
Readme
chrome-ctl
Lightweight Chrome CLI tool using Chrome DevTools Protocol (CDP).
Quick Start
# Install
npm install
npm link
# Launch Chrome with debugging
chrome-ctl launch
# Navigate
chrome-ctl navigate "https://example.com"
# Click element
chrome-ctl click 'button.submit'
# Type text
chrome-ctl type 'input[name="search"]' "OpenClaw"
# Run JavaScript
chrome-ctl evaluate "document.title"
# Take screenshot
chrome-ctl screenshot output.pngFeatures
- ✅ Direct CDP connection (no extension required)
- ✅ Persistent connection across navigation
- ✅ JSON output for all commands
- ✅ Accessibility tree snapshots
- ✅ Full JavaScript evaluation
- ✅ Mouse and keyboard automation
Commands
launch— Launch Chromium with remote debuggingtabs— List open tabsnavigate <url>— Navigate to URLsnapshot— Get accessibility treeclick <selector>— Click elementtype <selector> <text>— Type textevaluate <js>— Run JavaScriptscreenshot [path]— Capture screenshotwait <ms>— Wait milliseconds
Documentation
See /home/polish/.openclaw/workspace/skills/chrome-ctl/SKILL.md for full documentation.
Testing
Tested on LinkedIn profile automation - see TEST-RESULTS.md.
License
MIT
