my-image-drop
DiscoveredDSH plugin: drag-and-drop images to file paths for text-only models
my-image-drop
A DeepSeek Harness plugin that turns drag-and-drop of images into file paths in the composer, so text-only models can read them with the read tool (or a vision skill) instead of failing image admission.
How it works
- Host half (
dsh/index.js): registers a loopback routePOST /my-image-drop. It accepts an image, magic-byte checks and size-caps it (25 MB), writes it as a private (0600) temp file under<tmpdir>/my-image-drop, and returns{ "path": "..." }. - Browser half (
dsh/client.js): a capture-phasedroplistener (plusdragenter/dragoverto enable dropping). On a drop that carries image files, it uploads each to/my-image-dropand inserts the returned path into the focused composer as plain text. It also dispatches a syntheticdragendso the composer's drop overlay dismisses.
The composer shows a file path in the input box. Send it and the model gets a path — the primary trigger for the read tool and vision skills.
Install
From the GitHub source (git install runs prepare; no build needed, the entry is committed):
dsh plugin add github:<owner>/my-image-drop
Or add the bundle to your profile:
{
"dsh": { "profile": { "bundles": ["my-image-drop"] } }
}
Scope
This plugin handles drag-and-drop only. Paste is intentionally left to whatever else is installed (e.g. @liustack/modlens) so the two never double-handle the same event. If you run modlens' own drop patch and this plugin at the same time, both would insert a path — pick one.
Files
package.json— manifest; declaresdsh.bundle.patchand the browser bundle (dsh.client).cordis.patch.yml— host mount layer.dsh/index.js— host half (route).dsh/client.js— browser half (drag/drop listeners).
Testing (author)
node --check dsh/index.js— syntax check the host half.node --check dsh/client.js— syntax check the browser half.- Install into a web profile, restart the desktop app, drag an image into the composer, and confirm a file path is inserted and the
readtool can open it.
Comments
Loading…
Similar plugins
by qwerty-k-de
DSH Web composer toolbar picture button: pick images via the OS file dialog - no drag-and-drop needed.
★ 0
↓ 58/wk
MIT
JavaScript
Sep 1, 2026
dsh plugin --profile web add dsh-attach-pickerby zhanghuqqqq
DSH plugin: drag & drop anything into the composer - local files upload with absolute-path references, web images/links download host-side, plain text inserts. Per-session .dropped/<sessionId>/ landin
★ 0
↓ 45/wk
MIT
JavaScript
Sep 8, 2026
dsh plugin --profile web add dsh-drop-inby loudMore
DSH 插件:图片与文件直达纯文本模型——图片保留原生附件体验,PDF/Office/压缩包/视频/音频显示为附件栏方块,点击发送时自动转为工作区路径,配合 dsh-vision-toolkit 粘贴即看图。A DSH plugin that delivers images AND files to text-only models as workspace paths: images keep
★ 10
MIT
JavaScript
Sep 18, 2026
dsh plugin --profile web add @dsh-external/dsh-drop-to-pathby GLFzr
DSH 拖拽文件转路径插件:Codex 式拖拽,路径自动插入输入框(Drop File to Path for DeepSeek Harness)
★ 9
↓ 687/wk
MIT
JavaScript
Aug 28, 2026
dsh plugin --profile web add dsh-file-uploadby Zenjibad
Extends the DSH web chat drag-and-drop to accept every file type: non-image files are saved into the active session workspace so the agent can read and use them.
★ 1
MIT
TypeScript
Sep 10, 2026
dsh plugin --profile web add dsh-drop-any-fileby bill9109
为 DSH Web UI 增加跨平台文件拖拽与原始路径插入能力,无需复制文件
★ 21
↓ 537/wk
BSD-3-Clause
JavaScript
Oct 17, 2026
dsh plugin --profile web add dsh-drag-and-drop