dshbase

插件目录 / Knowledge / my-image-drop

my-image-drop

已验证 · 实测可装 yangpeng-space

✓ 持续维护

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-20最近推送
跨平台平台

功能简介

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

✅
我们的评价
可用 — 实测通过,早期项目

DSH plugin: drag-and-drop images to file paths for text-only models 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

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 <tmpdir>/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):

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; declares dsh.bundle.patch and 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 read tool can open it.

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 my-image-drop」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:yangpeng-space/my-image-drop

Headless(CLI)profile:

dsh plugin --profile headless add github:yangpeng-space/my-image-drop

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Knowledge 里更多

浏览全部 7819 个插件 →