dsh-chrome-bridge

用 @ 提及真实 Chrome 标签页直接读写——13 个工具覆盖标签页、快照、点击、输入、按键、滚动、拖拽与截图;输入以真实 CDP 事件投递,页面看到的 isTrusted 为真,并在页面内画出指针。需要在 Chrome 里手动加载随包的 Manifest V3 扩展(开发者模式,申请 debugger 与所有网址权限),通过 127.0.0.1 的 30795–30805 端口 WebSocket 与扩展通信,截图保存在 ~/.dsh/chrome-tab-shots;macOS 原生输入通道另需辅助功能权限和 Xcode 命令行工具。

插件介绍

用 @ 提及真实 Chrome 标签页直接读写——13 个工具覆盖标签页、快照、点击、输入、按键、滚动、拖拽与截图;输入以真实 CDP 事件投递,页面看到的 isTrusted 为真,并在页面内画出指针。需要在 Chrome 里手动加载随包的 Manifest V3 扩展(开发者模式,申请 debugger 与所有网址权限),通过 127.0.0.1 的 30795–30805 端口 WebSocket 与扩展通信,截图保存在 ~/.dsh/chrome-tab-shots;macOS 原生输入通道另需辅助功能权限和 Xcode 命令行工具。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:LouXiaXiaoHei/dsh-chrome-bridge

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。