概览
dsh-inbox-paste
DeepSeek Harness web plugin: paste files into the composer, store under session workspace/inbox/, read via read_inbox / list_inbox tools.
README / ZH
插件文档
dsh-inbox-paste
DeepSeek Harness Web 插件:在对话框粘贴/选择文件,落盘到 inbox/,待发送与发送后显示缩略图。Agent 用 list_inbox / read_inbox 读文本;图片理解需自备视觉 skill 或模型(见下方)。
环境要求
- DeepSeek Harness + web profile
- Node.js ≥ 22、
dshCLI
安装
dsh plugin --profile web add github:JarszmLovesAI/dsh_upload_file
dsh web
卸载:dsh plugin --profile web remove dsh-inbox-paste
使用
- 输入框内 Ctrl+V 粘贴,或点 曲别针 选文件。
- 上方待发送区出现缩略图;点 × 可移除(发送前不落盘)。
- 发送后文件写入
{session.cwd}/inbox/;气泡可显示缩略图(见配置)。 - Agent:
list_inbox→ 文本用read_inbox;图片请调用 image-reader 或你自己的视觉工具。
图片能上传,但模型能「看见」吗?
不能自动。 本插件不走 Harness 原生多模态附件链,主模型默认只收到路径标记。要分析 inbox 里的图片,请:
- 安装仓库附带的 image-reader skill,并在
~/.dsh/.env配置ARK_API_KEY;或 - 使用你已有的视觉 MCP / skill / 多模态模型。
配置
文件:%USERPROFILE%\.dsh\profiles\web\cordis.patch.yml(按你的 profile 名调整)
- id: inbox-paste
config:
uploadMaxBytes: 26214400
inboxDirName: inbox
allowedExtensions: []
customizeUserBubble: true # false = 不自定义发送后气泡,可能显示路径原文
customizeUserBubble |
效果 |
|---|---|
true(默认) |
发送后气泡显示缩略图,隐藏 [inbox:…](https://raw.githubusercontent.com/JarszmLovesAI/dsh_upload_file/c81fd3b715e8746ad4ba27ec744bab7aa90e5963/path) |
false |
使用 Harness 内置 user 气泡 |
改配置后重启 dsh web 并刷新浏览器。
与 dsh-file-upload 对比
| dsh-inbox-paste | dsh-file-upload | |
|---|---|---|
| 粘贴 | ✅ | ❌ |
| 存储 | {cwd}/inbox/ |
{cwd}/.dsh-uploads/ |
| 内置 PDF 解析 | ❌ | ✅ |
测试
npm test
License
MIT
