Bundle
dsh-browser-tabs
DSH plugin: /tabs popupSelect to list and select browser tabs via chrome-devtools-mcp, writing the chosen URL into the composer.
- Source
- LWJ007
- stars
- 1 stars
- License
- MIT
- Updated
- Updated 7 days ago
Readme
# dsh-browser-tabs [](LICENSE) [](https://github.com/topics/dsh-plugin) **在 DeepSeek Harness 里直接选择浏览器标签页** —— 输入 `/tabs` 弹出标签页选择器,点选后链接自动填入输入框。 A [DeepSeek Harness (DSH)](https://github.com/deepseek-ai) plugin that adds a `/tabs` slash command: typing `/tabs` opens a picker listing your browser tabs (via chrome-devtools-mcp); selecting one writes its URL into the composer. --- ## ✨ 功能 / Features - **`/tabs`** — 弹出标签页选择器,列出当前浏览器所有标签页。 - **点选即填** — 选中某个标签页后,它的 URL 自动写入输入框(composer)。 - **操作你已登录的浏览器** — 通过 [chrome-devtools-mcp](https://github.com/ChromeDevTools/chrome-devtools-mcp)(`--autoConnect`)读取真实浏览器标签页,无需另起无头浏览器。 ## 📦 安装 / Install ```sh dsh plugin --profile web add github:LWJ007/dsh-browser-tabs ``` 或通过 git 地址安装: ```sh dsh plugin --profile web add https://github.com/LWJ007/dsh-browser-tabs.git ``` 安装后**重启一次 `dsh`**(bundle 层在启动时组合)。 ### 🔧 安装排错 / Troubleshooting **错误 1:`ERR_PNPM_UNEXPECTED_STORE`(pnpm store 路径不一致)** 这是 pnpm 的 store 路径问题,与插件本身无关。在 `C:\Users\lee.li\.dsh\profiles\web` 目录下重新安装依赖即可: ```sh cd C:\Users\lee.li\.dsh\profiles\web pnpm install ``` 或统一 store 路径: ```sh pnpm config set store-dir C:\Users\lee.li\.dsh\.pnpm-store\v11 --global ``` **错误 2:`allowBuilds` 需要配置(git 托管插件构建被 pnpm 阻止)** 在 `C:\Users\lee.li\.dsh\profiles\web\pnpm-workspace.yaml` 的 `allowBuilds` 下添加你的插件包名: ```yaml allowBuilds: node-pty: false dsh-browser-tabs: true ``` 然后重新执行安装命令。 ### 前置条件 / Prerequisites 1. DeepSeek Harness(`dsh`)web profile。 2. 在 DSH 的 MCP 管理器(`dsh-mcp-manager`)中配置 [chrome-devtools-mcp](https://github.com/ChromeDevTools/chrome-devtools-mcp) 为 MCP server(stdio,`--autoConnect`)。插件通过 `mcp__chrome-devtools-mcp__list_pages` 工具读取标签页列表。 ## 🚀 使用 / Usage 1. 在输入框输入 `/tabs`。 2. 弹出标签页选择器,列出所有浏览器标签页(标题 + URL)。 3. 点选某个标签页 —— 它的 URL 自动填入输入框。 ## 🛠 工作原理 / How it works - **宿主端**(`lib/index.js`):注册 `GET /api/dsh-browser-tabs/pages` 路由,调用 `mcp__chrome-devtools-mcp__list_pages` 获取标签页列表,返回 JSON。 - **客户端**(`lib/client.js`):把 `/tabs` 注册为 `popupSelect` 命令。`options` 从宿主路由拉取标签页;`onSelect` 通过 `conversation.input.setDraft` 把选中的 URL 写入输入框。 ## 📄 许可证 / License MIT
Install
dsh plugin --profile web add github:LWJ007/dsh-browser-tabs#79c624d4ff9e8e3deb65d481de56ca41c1687ab7
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-browser-tabs from the hub