返回顶部
b

browser-opener跨平台浏览器开启

Cross-platform browser opening skill that supports multiple browsers (Chrome, Firefox, Edge, Safari) with URL launching capabilities. Use when Codex needs to open web browsers programmatically for: (1) Launching default browser, (2) Opening specific browsers, (3) Opening URLs with default browser, (4) Opening URLs with specific browsers, (5) Cross-platform browser automation

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
142
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

browser-opener

浏览器打开技能

本技能提供跨平台的浏览器打开功能,支持多种浏览器。

快速开始

使用默认浏览器打开URL:
python

使用浏览器打开脚本


python scripts/open_browser.py --url https://www.google.com

使用指定浏览器打开URL:
python

使用Chrome打开


python scripts/open_browser.py --url https://www.google.com --browser chrome

使用Firefox打开

python scripts/open_browser.py --url https://www.google.com --browser firefox

使用Edge打开

python scripts/open_browser.py --url https://www.google.com --browser edge

支持的浏览器

  • - Chrome:chrome、google-chrome、google-chrome-stable
  • Firefox:firefox、mozilla-firefox
  • Edge:edge、microsoft-edge
  • Safari:safari、apple-safari
  • 默认:default(使用系统默认浏览器)

使用示例

参见 examples/ 获取完整的使用示例,包括:

  • - 基本URL打开
  • 指定浏览器启动
  • 批量打开多个URL
  • 错误处理场景

浏览器支持详情

关于不同平台上的浏览器支持详细信息,请参见 references/browser_support.md

命令行选项

scripts/open_browser.py 脚本支持以下选项:

  • - --url:要打开的URL(必填)
  • --browser:要使用的浏览器(可选,默认为default)
  • --new-window:在新窗口中打开(可选)
  • --incognito:在无痕/隐私模式下打开(可选)
  • --headless:在无头模式下打开(可选,用于测试)

错误处理

该脚本包含全面的错误处理,针对以下情况:

  • - 无效URL
  • 未找到浏览器
  • 权限问题
  • 平台特定错误

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 browser-opener-skill-1776123444 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 browser-opener-skill-1776123444 技能

通过命令行安装

skillhub install browser-opener-skill-1776123444

下载

⬇ 下载 browser-opener v1.0.0(免费)

文件大小: 9.23 KB | 发布时间: 2026-4-14 14:41

v1.0.0 最新 2026-4-14 14:41
- Initial release of browser-opener skill.
- Provides cross-platform support for opening URLs in Chrome, Firefox, Edge, Safari, or the system default browser.
- Command-line options for specifying browsers, incognito/private mode, new window, and headless operation.
- Includes robust error handling for invalid URLs, unavailable browsers, and platform-specific issues.
- Usage examples and detailed browser support documentation included.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部