{"skill":{"slug":"browser-automation","displayName":"Browser Automation","summary":"Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications.","description":"---\nname: browser\ndescription: Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications.\nallowed-tools: Bash\n---\n\n# Browser Automation\n\nAutomate browser interactions using Stagehand CLI with Claude.\n\n### First: Environment Selection (Local vs Remote)\n\nThe skill automatically selects between local and remote browser environments:\n- **If Browserbase API keys exist** (BROWSERBASE_API_KEY and BROWSERBASE_PROJECT_ID in .env file): Uses remote Browserbase environment\n- **If no Browserbase API keys**: Falls back to local Chrome browser\n- **No user prompting**: The selection happens automatically based on available configuration\n\n## Setup (First Time Only)\n\nCheck `setup.json` in this directory. If `setupComplete: false`:\n\n```bash\nnpm install    # Install dependencies\nnpm link       # Create global 'browser' command\n```\n\n## Commands\n\nAll commands work identically in both modes:\n\n```bash\nbrowser navigate <url>                    # Go to URL\nbrowser act \"<action>\"                    # Natural language action\nbrowser extract \"<instruction>\" ['{}']    # Extract data (optional schema)\nbrowser observe \"<query>\"                 # Discover elements\nbrowser screenshot                        # Take screenshot\nbrowser close                             # Close browser\n```\n\n## Quick Example\n\n```bash\nbrowser navigate https://example.com\nbrowser act \"click the Sign In button\"\nbrowser extract \"get the page title\"\nbrowser close\n```\n\n## Mode Comparison\n\n| Feature | Local | Browserbase |\n|---------|-------|-------------|\n| Speed | Faster | Slightly slower |\n| Setup | Chrome required | API key required |\n| Stealth mode | No | Yes |\n| Proxy/CAPTCHA | No | Yes |\n| Best for | Development | Production/scraping |\n\n## Best Practices\n\n1. **Always navigate first** before interacting\n2. **View screenshots** after each command to verify\n3. **Be specific** in action descriptions\n4. **Close browser** when done\n\n## Troubleshooting\n\n- **Chrome not found**: Install Chrome or use Browserbase mode\n- **Action fails**: Use `browser observe` to discover available elements\n- **Browserbase fails**: Verify API key and project ID are set\n\nFor detailed examples, see [EXAMPLES.md](EXAMPLES.md).\nFor API reference, see [REFERENCE.md](REFERENCE.md).\n","tags":{"latest":"1.0.1"},"stats":{"comments":3,"downloads":46767,"installsAllTime":545,"installsCurrent":542,"stars":62,"versions":2},"createdAt":1770307091925,"updatedAt":1778988479927},"latestVersion":{"version":"1.0.1","createdAt":1770307243177,"changelog":"Initial public release","license":null},"metadata":null,"owner":{"handle":"peytoncasper","userId":"s17by6p14wraesen3wryfstem9885j4n","displayName":"peytoncasper","image":"https://avatars.githubusercontent.com/u/8305883?v=4"},"moderation":{"isSuspicious":false,"isMalwareBlocked":false,"verdict":"clean","reasonCodes":["review.llm_review"],"summary":"Review: review.llm_review","engineVersion":"v2.4.24","updatedAt":1779950381371}}