Show local images and short videos in the DSH conversation card with one-click download of the original file, or offer any other local file for download; works over local and remote connections and keeps the media itself out of the model's vision context.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-media-card
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:YangRuiYangDan/dsh-media-card
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
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.
Features
| 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" }
Install
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.
What it does
- The agent calls
dsh_show_media; the card inlines the original media and offers a download link. - Images follow the deployment's attachment limit; videos cap at
64MiB(DEFAULT_VIDEO_CAP). - Click the image or the video frame to open a larger preview.
Security
- The server trusts loopback plus the deployment's configured trusted hosts (the same principle as dsh's own /api) — so it does not depend on any specific remote-access plugin, and works with any setup that can reach dsh.
- Only image/video extensions are accepted, and reads are size-capped.
- This is not an auth layer; protect remote access with whatever protects your dsh deployment (rdsh gateway pairing/login, reverse-proxy auth, tailscale, etc.).
What this is not
- Not a replacement for
read_image(model vision still uses the official path). - Not a process-wide floating overlay.
- Not a second gallery. It only customizes the
dsh_show_mediatool card.
Development
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
License
MIT
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 38526
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37266
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
yikart/AiToEarn#dsh-plugin-aitoearn★ 28921
Generate copy, images and short videos, and publish with one click to Douyin, Kuaishou, Xiaohongshu, WeChat Official, Bilibili, Facebook, TikTok and more, covering the full content lifecycle from creation to publishing and monetization.
superdesigndev/treg★ 9983
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 6095
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
Hithink-Tech-Org/Financial-API#hithink-finance★ 4745
Query Hithink Finance data in DeepSeek Harness, view charts in chat, and save refreshable dashboards.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.