Set up browser-tools plugin by installing dependencies and creating global symlinks.
Installs the browser-tools plugin by setting up dependencies and creating global command symlinks in ~/bin. Run this once after installing the plugin to enable browser automation commands like screenshots, navigation, and element picking.
/plugin marketplace add lttr/claude-marketplace/plugin install browser-tools@lttr-claude-marketplaceSet up browser-tools plugin by installing dependencies and creating global symlinks.
Step 1: Find the plugin scripts directory
Locate the browser-tools scripts directory (search in ~/.claude/plugins for browser-tools plugin):
SCRIPTS_DIR=$(find ~/.claude/plugins -type d -path "*/browser-tools/skills/browser-tools/scripts" 2>/dev/null | head -1)
Verify it was found:
echo "Found scripts at: $SCRIPTS_DIR"
Step 2: Install dependencies
cd "$SCRIPTS_DIR" && pnpm install
Step 3: Create ~/bin directory
mkdir -p ~/bin
Step 4: Make scripts executable
chmod +x "$SCRIPTS_DIR"/browser-*.js
Step 5: Create symlinks (WITHOUT .js extension)
IMPORTANT: Symlink names should NOT have .js extension:
ln -sf "$SCRIPTS_DIR/browser-start.js" ~/bin/browser-start
ln -sf "$SCRIPTS_DIR/browser-nav.js" ~/bin/browser-nav
ln -sf "$SCRIPTS_DIR/browser-eval.js" ~/bin/browser-eval
ln -sf "$SCRIPTS_DIR/browser-screenshot.js" ~/bin/browser-screenshot
ln -sf "$SCRIPTS_DIR/browser-pick.js" ~/bin/browser-pick
ln -sf "$SCRIPTS_DIR/browser-cookies.js" ~/bin/browser-cookies
ln -sf "$SCRIPTS_DIR/browser-console.js" ~/bin/browser-console
Step 6: Verify PATH
Check if ~/bin is in PATH:
case "$PATH" in
*"$HOME/bin"*) echo "✓ ~/bin is in PATH" ;;
*) echo "⚠ WARNING: Add ~/bin to PATH in your shell profile" ;;
esac
After completion, report:
The browser-tools skill is now ready! Ask me to test web pages, take screenshots, or interact with browsers.