Browser Opener Skill
This skill provides cross-platform browser opening capabilities with support for multiple browsers.
Quick Start
Open a URL with the default browser:
# Using the browser opener script
python scripts/open_browser.py --url https://www.google.com
Open a URL with a specific browser:
# Open with Chrome
python scripts/open_browser.py --url https://www.google.com --browser chrome
# Open with Firefox
python scripts/open_browser.py --url https://www.google.com --browser firefox
# Open with Edge
python scripts/open_browser.py --url https://www.google.com --browser edge
Supported Browsers
- Chrome:
chrome, google-chrome, google-chrome-stable
- Firefox:
firefox, mozilla-firefox
- Edge:
edge, microsoft-edge
- Safari:
safari, apple-safari
- Default:
default (uses system default browser)
Usage Examples
See examples/ for comprehensive usage examples including:
- Basic URL opening
- Browser-specific launching
- Batch opening multiple URLs
- Error handling scenarios
Browser Support Details
For detailed information about browser support on different platforms, see references/browser_support.md.
Command Line Options
The scripts/open_browser.py script supports the following options:
--url: URL to open (required)
--browser: Browser to use (optional, defaults to 'default')
--new-window: Open in new window (optional)
--incognito: Open in incognito/private mode (optional)
--headless: Open in headless mode (optional, for testing)
Error Handling
The script includes comprehensive error handling for:
- Invalid URLs
- Browser not found
- Permission issues
- Platform-specific errors