@heysnap-ai/chrome-controller-cli
v0.1.1
Published
CLI helpers for the HeySnap Chrome controller workspace.
Maintainers
Readme
HeySnap Chrome CLI
Install globally:
npm install -g @heysnap-ai/chrome-controller-cliUse it as chrome:
chrome tabs list
chrome tabs new https://example.com/ --wait
chrome tabs new https://example.com/ https://example.org/ --wait
chrome tabs goto 123 https://example.org/ --wait-until complete
chrome tabs eval 123 'document.title'
chrome tabs eval 123 "await window.__heysnapDownloads.save('text', 'hello')" --output text:downloads/text.txt
chrome tabs screenshot 123 screenshots/example.png --full-page --overwriteBy default, the CLI posts browser-control requests to:
http://127.0.0.1:4000/browser-control/requestsUse --server to override the local server:
chrome tabs list --server http://127.0.0.1:4000See the repository docs for the full command guide.
