browser
Original:🇺🇸 English
Not Translated
5 scripts
Minimal Chrome DevTools Protocol tools for browser automation and scraping. Use when you need to start Chrome, navigate pages, execute JavaScript, take screenshots, or interactively pick DOM elements.
1installs
Added on
NPX Install
npx skill4agent add ajianaz/skills-collection browserSKILL.md Content
Browser Tools
Minimal CDP tools for collaborative site exploration and scraping.
IMPORTANT: All scripts are located in and must be called with full paths.
~/.factory/skills/browser/Start Chrome
bash
~/.factory/skills/browser/start.js # Fresh profile
~/.factory/skills/browser/start.js --profile # Copy your profile (cookies, logins)Start Chrome on with remote debugging.
:9222Navigate
bash
~/.factory/skills/browser/nav.js https://example.com
~/.factory/skills/browser/nav.js https://example.com --newNavigate current tab or open new tab.
Evaluate JavaScript
bash
~/.factory/skills/browser/eval.js 'document.title'
~/.factory/skills/browser/eval.js 'document.querySelectorAll("a").length'Execute JavaScript in active tab (async context).
IMPORTANT: The code must be a single expression or use IIFE for multiple statements:
- Single expression:
'document.title' - Multiple statements:
'(() => { const x = 1; return x + 1; })()' - Avoid newlines in the code string - keep it on one line
Screenshot
bash
~/.factory/skills/browser/screenshot.jsScreenshot current viewport, returns temp file path.
Pick Elements
bash
~/.factory/skills/browser/pick.js "Click the submit button"Interactive element picker. Click to select, Cmd/Ctrl+Click for multi-select, Enter to finish.
Usage Notes
- Start Chrome first before using other tools
- The flag syncs your actual Chrome profile so you're logged in everywhere
--profile - JavaScript evaluation runs in an async context in the page
- Pick tool allows you to visually select DOM elements by clicking on them