co browser
Quick browser screenshots and automation with one command. Perfect for debugging, testing, and visual proof.
Quick Start: co browser "screenshot localhost:3000" - instant screenshot, no code required.
Basic Usage
Saves to .tmp/screenshot_YYYYMMDD_HHMMSS.png by default.
Command Format
co browser "screenshot [URL] [save to PATH] [size SIZE]"All parts except URL are optional.
Basic Screenshots
Save to Specific Path
Device Sizes
Device Presets
| Preset | Dimensions | Device |
|---|---|---|
| iphone | 390x844 | iPhone 14/15 |
| android | 360x800 | Common Android |
| ipad | 768x1024 | iPad |
| desktop | 1920x1080 | Full HD Desktop |
Complete Examples
Debug Mobile Checkout
Document Bug
Test Responsive Design
URL Handling
The command intelligently handles URLs:
Use Cases
1. Debug Local Development
2. Document Bugs
3. Test Responsive Design
4. CI/CD Integration
Framework Examples
Next.js
FastAPI
Django
React Dev Server
Installation
Browser features require Playwright:
Common Errors
❌ Browser tools not installed
Run: pip install playwright && playwright install chromium
❌ Cannot reach http://localhost:3000
Is your server running? Start it first.
❌ Natural language browser agent unavailable. Set OPENAI_API_KEY
Set your OpenAI API key for natural language commands
Tips & Best Practices
co browser "screenshot localhost:3000" for instant feedbacksave to bugs/issue-123.pngLimitations
- • Screenshots only (no interaction, clicking, forms)
- • Single page at a time
- • Headless browser only
- • PNG format only
For complex browser automation, use the full ConnectOnion browser agent or Playwright directly.
