dsh-plugin
DayuanJiang/next-ai-draw-iodsh 的 draw.io 绘图插件:通过 next-ai-drawio MCP 服务器作图,点回复里的链接在右侧栏打开实时预览,可以手动修改图,AI 的每次修改都是可以恢复的版本。需 Node.js 18+,首次使用由 npx 下载 MCP 服务器。
在 DSH 对话卡片内显示本地图片与短视频并提供原文件一键下载,也可为任意其他本地文件提供下载;本机与远程连接均可用,媒体本身不进入模型的视觉上下文。
Show a local image or short video in the current DeepSeek Harness conversation card, with one-click download. Works on local and remote connections.
Community plugin for DeepSeek Harness. Not an official DeepSeek AI product.
Conversation markdown still will not render a local file:// or Windows path. Official read_image remains the model-vision path. This plugin is for the human sitting at the card — preview and download.
| Tool | dsh_show_media · one argument file_path |
| Images | PNG, JPEG, WebP, GIF |
| Videos | MP4, WebM, MOV, M4V, MKV · 64MiB cap |
| Display | inline original-file preview (not the official attachment downsample) |
| Download | every card carries a ⬇ Download link saving the original file |
| Preview | click the image (or the video frame) · Esc / backdrop / × closes |
| Remote | works over a GET preview endpoint, so it is usable over LAN / tunnel / public hub remote connections |
| Scope | this conversation card only · does not occupy shell.overlay |
Compared to 0.1.0: switched to a GET inline/download endpoint so remote connections work; fixed host and browser dependency resolution (
inject); removed the flaky POST RPC channel and internal diagnostics.
Relative paths resolve against the session workspace.
{ "file_path": "C:\\path\\to\\photo.webp" }
From npm (published):
dsh plugin --profile web add dsh-media-card
From GitHub (no build step — lib/ is the source):
dsh plugin --profile web add github:YangRuiYangDan/dsh-media-card
Or a local checkout:
dsh plugin --profile web add /path/to/dsh-media-card
Restart web, then ask the agent to show a local file.
dsh_show_media; the card inlines the original media and offers a download link.64MiB (DEFAULT_VIDEO_CAP).read_image (model vision still uses the official path).dsh_show_media tool card.Host: lib/index.js (defineTool + GET preview/download endpoint).
Client: lib/client.js (window.__ModuleLoader__, keyed tool.call.toolview).
Shared: lib/media.js.
node --check lib/index.js && node --check lib/client.js && node --check lib/media.js
MIT