dsh-browser-fs
让 agent 读写浏览器所在电脑上的文件:浏览器授权本地目录(File System Access),工具调用经插件自建 WebSocket 中继;移动端/非安全上下文自动降级只读兼容模式。
Give agents access to files on the machine where the browser runs: user authorizes a local directory via File System Access, tool calls relay over the plugin's own WebSocket; read-only compat mode for mobile/insecure contexts.
怎么安装
dsh plugin add dsh-browser-fs 简介
dsh-browser-fs **中文** | English 让 dsh 的 agent 读写**浏览器所在机器**的本地文件。dsh 自带的 fs 工具只能摸宿主机; 远程部署时浏览器在别的机器上,agent 够不到你本地的文件。本插件补上这个缺口: 用户在 dsh web 页面里通过 File System Access API(showDirectoryPicker)授权一个本地 目录,句柄存 IndexedDB;agent 通过三个模型工具 list/read/write 该目录下的文件,工具 调用经插件自建的 WebSocket 通道转发到浏览器执行。 原理 双面插件(cordis 插件体系): **host 半**(src/index.ts,跑在 dsh 宿主 Node 进程) ctx.webServer.registerUpgrade 注册精确路径 /browser-fs/ws 的 WS 通道; ctx.tools.register 注册 browser_fs_list / browser_fs_read / browser_fs_write; execute 把 {type:'call', rpcId, op, args} 帧发给「持有授权句柄」的标签页,按 rpcId 配对 result 帧;exec.signal 接到 pending 的 abort(同时给浏…
推荐参考
信息
- 协议
- MIT
- 语言
- JavaScript
- GitHub 星标
- 3
- 月下载
- 534
- 最近更新
- 2026-08-23
- 创建于
- 2026-08-15
基础安全检查
- 检查结果
- 无
- 收录来源
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- 主题标签
- browser-extension, deepseek, deepseek-harness, dsh, dsh-plugin, dsh-plugin-market, dsh-plugins, file-system-access