← 返回 Skills 市场
meowlegemy-sudo

Chrome Session Attach

作者 meowlegemy-sudo · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
329
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install chrome-attach
功能描述
使用 Chrome Session Attach 功能控制用户的浏览器标签页。包括安装 Chrome 扩展、配置连接、Attach/Detach 标签页、截图、导航、填表等操作。
使用说明 (SKILL.md)

Chrome Session Attach

让 Agent 控制用户已有的 Chrome 标签页,无需在 OpenClaw 管理的浏览器中登录。

前置条件

  1. Gateway 必须运行在本地(127.0.0.1)
  2. Chrome 扩展已加载

安装步骤

1. 获取扩展路径并复制到桌面

openclaw browser extension path
# 输出: ~/.openclaw/browser/chrome-extension

复制到桌面以便访问:

cp -r ~/.openclaw/browser/chrome-extension ~/Desktop/OpenClaw-Extension

2. 在 Chrome 中加载扩展

  1. 打开 Chrome → chrome://extensions
  2. 启用 "Developer mode"(右上角)
  3. 点击 "Load unpacked"
  4. 选择 ~/Desktop/OpenClaw-Extension

3. 配置扩展

点击工具栏的 OpenClaw 扩展图标,配置:

  • Port: Gateway 端口(默认 18789,可在 openclaw gateway status 查看)
  • Token: Gateway token

获取 Token:

cat ~/.openclaw/openclaw.json | jq -r '.gateway.auth.token'

4. Attach 标签页

  1. 在想要控制的标签页点击扩展图标
  2. 点击 "Attach to this tab"
  3. 图标显示 ON = 已连接

可用命令

命令 说明
openclaw browser snapshot 获取页面快照
openclaw browser navigate \x3Curl> 导航到 URL
openclaw browser click \x3Cref> 点击元素
openclaw browser type \x3Cref> "text" 输入文字
openclaw browser screenshot 截图
openclaw browser tabs 列出标签页
openclaw browser close \x3Ctarget> 关闭标签页

Detach

点击扩展图标 → 再次点击 "Attach to this tab" 即可断开连接。

故障排除

  • 扩展图标显示红色 ! → Gateway 未运行或端口错误
  • openclaw gateway status 查看 Gateway 状态
  • 确保 Gateway 绑定在 127.0.0.1(非远程模式)
安全使用建议
This skill will instruct you (or the agent) to read files under ~/.openclaw and to copy/load a local Chrome extension that uses a Gateway token from ~/.openclaw/openclaw.json. The registry metadata did not declare those config paths or credentials — that's the primary inconsistency. Before installing or using: (1) Verify the origin and contents of the Chrome extension being loaded; only load unpacked extensions you trust. (2) Confirm the Gateway is intended to run on 127.0.0.1 and that exposing its token to a browser extension is acceptable for your threat model. (3) Inspect ~/.openclaw/openclaw.json yourself rather than running untrusted commands that cat it; avoid pasting the token into third-party sites. (4) Consider not copying sensitive files to a public Desktop folder; use a secure location with strict permissions. (5) Ask the publisher to update the skill metadata to explicitly declare required config paths/credentials (e.g., required config path: ~/.openclaw/openclaw.json) so you can make an informed decision. The mismatch between instructions and declared requirements is why this is flagged as suspicious.
功能分析
Type: OpenClaw Skill Name: chrome-attach Version: 1.0.0 The skill bundle provides instructions for a 'chrome-attach' feature that allows the OpenClaw agent to interact with a user's existing Chrome browser tabs. The process requires manual user intervention, including loading a local extension and configuring it with a gateway token retrieved via standard CLI commands. The instructions in SKILL.md are transparent, and the listed commands (e.g., snapshot, navigate, click) are standard browser automation functions without evidence of malicious intent or automated exfiltration.
能力评估
Purpose & Capability
The skill's stated purpose (attach to and control Chrome tabs) matches the runtime instructions (install local extension, connect to a local Gateway, run openclaw browser commands). However, the skill metadata lists no required config paths, env vars, or credentials even though the instructions explicitly read files under ~/.openclaw (extension path and openclaw.json token). The omission is inconsistent and unexplained.
Instruction Scope
SKILL.md instructs the user/agent to read local files (cp ~/.openclaw/browser/chrome-extension, cat ~/.openclaw/openclaw.json | jq -r '.gateway.auth.token') and to expose a Gateway token to the extension. These actions go beyond mere UI guidance and require access to sensitive local configuration. While these steps are coherent with the skill's function, they constitute sensitive file access that should have been declared and justified in metadata.
Install Mechanism
This is an instruction-only skill with no install spec and no code files. That minimizes supply-chain risk because nothing is downloaded or written by the skill itself beyond the manual copy step the user performs.
Credentials
The instructions require the Gateway token stored in ~/.openclaw/openclaw.json and access to the OpenClaw extension directory. Yet requires.env, primary credential, and required config paths are empty in the registry metadata. Requesting or reading the gateway token is a sensitive operation and should be explicitly declared; its absence is disproportionate and reduces transparency.
Persistence & Privilege
The skill is not always-enabled and does not request persistent privileges. Autonomous invocation is allowed (platform default) but is not combined with any other elevated or undeclared access in the metadata.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install chrome-attach
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /chrome-attach 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of chrome-attach. - Enables control of existing Chrome tabs via Session Attach, without logging in through OpenClaw-managed browser. - Supports installation and configuration of Chrome extension for user browser. - Provides commands for navigation, interaction (click, type), snapshots, screenshots, tab listing and management. - Users can easily attach/detach tabs for session control. - Includes troubleshooting tips for connection issues.
元数据
Slug chrome-attach
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Chrome Session Attach 是什么?

使用 Chrome Session Attach 功能控制用户的浏览器标签页。包括安装 Chrome 扩展、配置连接、Attach/Detach 标签页、截图、导航、填表等操作。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 329 次。

如何安装 Chrome Session Attach?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install chrome-attach」即可一键安装,无需额外配置。

Chrome Session Attach 是免费的吗?

是的,Chrome Session Attach 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Chrome Session Attach 支持哪些平台?

Chrome Session Attach 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Chrome Session Attach?

由 meowlegemy-sudo(@meowlegemy-sudo)开发并维护,当前版本 v1.0.0。

💬 留言讨论