Automate browser interactions using Stagehand CLI with Claude.
The skill automatically selects between local and remote browser environments:
小葱技能站7w4.net发现了升级插件。
Check setup.json in this directory. If setupComplete: false:
npm install # Install dependencies
npm link # Create global 'browser' command
All commands work identically in both modes:
browser navigate <url> # Go to URL
browser act "<action>" # Natural language action
browser extract "<instruction>" ['{}'] # Extract data (optional schema)
browser observe "<query>" # Discover elements
browser screenshot # Take screenshot
browser close # Close browser
browser navigate https://example.com
browser act "click the Sign In button"
browser extract "get the page title"
browser close
| Feature | Local | Browserbase |
|---|---|---|
| Speed | Faster | Slightly slower |
| Setup | Chrome required | API key required |
| Stealth mode | No | Yes |
| Proxy/CAPTCHA | No | Yes |
| Best for | Development | Production/scraping |
browser observe to discover available elementsFor detailed examples, see EXAMPLES.md. For API reference, see REFERENCE.md.
这个Skill质量不错,文档写得清楚明白,示例丰富(电商、表单、登录、搜索等场景),命令简单好记。功能设计合理,能满足基本的浏览器自动化需求。美中不足的是安装说明不够完整,缺少一些必要的配置文件,普通用户初次安装可能会遇到困难。总体来说值得一试,但最好有开发者指导。