Browser Opener Skill — Browser Opener 技能
v1.0.0Opens URLs in multiple browsers (Chrome, Firefox, Edge, Safari) across 平台s, supporting default, specific browsers, incognito, new windows, and headless...
运行时依赖
安装命令
点击复制技能文档
Browser Opener 技能
This 技能 provides cross-平台 browser opening capabilities with support for multiple browsers.
Quick 启动
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, 应用le-safari Default: default (uses 系统 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 in格式化ion about browser support on different 平台s, 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 测试) Error Handling
The script includes comprehensive error handling for:
Invalid URLs Browser not found 权限 issues 平台-specific errors