yangpeng-space/my-image-drop

yangpeng-space★ 0JavaScript最后同步: 2026-08-20

在 GitHub 打开

DSH plugin: drag-and-drop images to file paths for text-only models

README 摘要

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 route POST /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 /my-image-drop , and returns { "path": "..." } . - Browser half ( dsh/client.js ): a capture-phase drop listener (plus dragenter / dragover to enable dropping). On a drop that carries image files, it uploads each to /my-image-drop and inserts the returned path into the focused composer as plain text. It also dispatches a synthetic dragend so 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): Or add the bundle to your profile: Scope This plugin handles drag-and-drop only . Paste is intentionally left to whatever else is installed (e.g. @liust…

在 GitHub 查看完整 README →
工具/开发dsh-pluginagentvision

分类