AI Agent Hub
Back to plugins
dsh-media-inline-preview preview

dsh-media-inline-preview

Client Updated 2026.09.05

Run the following command in DeepSeek Harness:

dsh plugin install seeingrain/dsh-media-inline-preview

Paste the following prompt into your AI chat to install this plugin:

To install this plugin in DeepSeek Harness: the source is at https://github.com/seeingrain/dsh-media-inline-preview, run dsh plugin install seeingrain/dsh-media-inline-preview to finish the setup.

About this plugin

In DSH chat sessions, media files produced by agents have historically appeared only as bare paths or raw JSON specs, forcing users to manually locate and open them in a file manager. dsh-media-inline-preview solves this: once installed, it requires zero configuration. When a session references or produces images, videos, or audio, the agent automatically invokes img_serve or media_serve and emits an inline fence, rendering a playable card or player directly within the chat message.

The plugin covers three fence types—img, video, and audio—using mutually exclusive extension sets to determine media kind and prevent bare JSON bodies from mis-triggering across categories. If playback fails, it automatically retries with a cache-busting parameter; a second failure gracefully degrades to an error card so the conversation flow is never interrupted.

On the security side, every route enforces a per-request browser trust fence: the Host must be loopback or a LAN IP sampled at startup, cross-site requests are rejected outright, and an Origin header must match the Host. Workspace file access is further guarded by realpath symlink-escape detection, an extension whitelist, and 128 MiB / 2 GiB size caps. It is well suited for developers who want to preview media files inline within local or LAN DSH sessions while maintaining strict security boundaries.

Screenshots

Use Cases

  • Agent produces an image in chat and it renders as an inline card without manual file lookup
  • Play video or audio directly within a DSH chat message over a LAN session
  • Hand-write an img, video, or audio fence and get an instant player card

Best For

  • Developers using DSH local sessions who want inline media previews out of the box
  • Teams collaborating over LAN via DSH who need instant media file access
  • Self-hosted users who prioritize path security and cross-site protection