dsh-show-media
开发工具 活跃维护

dsh-show-media

NecromanAlbert/dsh-show-media

轻量级AI对话工具会话增强插件,支持在当前会话卡片中直接展示本地存储的图片、短视频文件,无需跳转额外页面,安装后即可直接使用。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
18 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:NecromanAlbert/dsh-show-media
git clone https://github.com/NecromanAlbert/dsh-show-media.git
git clone git@github.com:NecromanAlbert/dsh-show-media.git
README.md main
# dsh-show-media **Show a local image or short video in the current DeepSeek Harness conversation card.** [简体中文](https://github.com/NecromanAlbert/dsh-show-media/blob/main/README.zh.md) · [MIT](https://github.com/NecromanAlbert/dsh-show-media/blob/main/LICENSE) · [Security](https://github.com/NecromanAlbert/dsh-show-media/blob/main/SECURITY.md) [![License: MIT](https://cdnimage-cache.doubi.ren/?url=https://img.shields.io/badge/License-MIT-yellow.svg)](https://raw.githubusercontent.com/NecromanAlbert/dsh-show-media/main/LICENSE) [![dsh.bundle](https://cdnimage-cache.doubi.ren/?url=https://img.shields.io/badge/dsh.bundle-required-0f766e.svg)](https://deepseek-harness.github.io/deepseek-harness/develop/basic/publish.html) [![topic: dsh-plugin](https://cdnimage-cache.doubi.ren/?url=https://img.shields.io/badge/topic-dsh--plugin-111827.svg)](https://github.com/topics/dsh-plugin) [![Node.js 22+](https://cdnimage-cache.doubi.ren/?url=https://img.shields.io/badge/Node.js-22%2B-339933.svg?logo=node.js&logoColor=white)](https://nodejs.org/)

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.

Install

From a clone (no build step — lib/ is the source):

dsh plugin --profile desktop add github:NecromanAlbert/dsh-show-media

Or a local checkout:

dsh plugin --profile desktop add /path/to/dsh-show-media

Restart the Desktop GUI after install. Then ask the agent to show a local file.

Listed on awesome-dsh-plugin once the catalog PR merges. npm is optional and not required for listing.

What it does

Tool dsh_show_media · one argument file_path
Images PNG, JPEG, WebP, GIF
Videos MP4, WebM, MOV, M4V, MKV · 64MiB cap
Display original file bytes, not the official attachment downsample
Preview click the image (or the video frame) · Esc / backdrop / × closes
Scope this conversation card only · does not occupy shell.overlay

Relative paths resolve against the session workspace.

{ "file_path": "C:\\path\\to\\photo.webp" }

What this is not

  • Not a replacement for read_image.
  • Not a process-wide floating overlay.
  • Not a second gallery. It only customizes the dsh_show_media tool card.

Develop

node --test

Host: lib/index.js (defineTool + /dsh-show-media RPC).
Client: lib/client.js (window.__ModuleLoader__, keyed tool.call.toolview).
Shared: lib/media.js.

License

MIT.