dsh-image-view
在工具行内联展示 read_image 返回的图片(缩略图可点击查看原图)
fzhiyu1
@fzhiyu1
⬇ 2
★ 0
main
安装
dsh plugin --profile web add github:fzhiyu1/dsh-image-view
需要可复现安装时,可在仓库后追加 #commit 固定提交。
在工具行内联展示 read_image 返回的图片(缩略图可点击查看原图)
该插件未提供要点说明,请参考仓库 README。
- 安装并启动 DeepSeek Harness:
npx @deepseek-ai/dsh web - 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
- 用 dsh plugins list 确认已安装,必要时重启 Harness 生效
插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。
| 代码仓库 | github.com/fzhiyu1/dsh-image-view |
| 许可证 | MIT |
| 主要语言 | main |
| 下载量 | 2 |
| GitHub 星标 | 0 |
| 最近推送 | 2026-08-17 |
| 收录日期 | 2026-09-19 |
| 分类 | 界面增强 |
事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。
以下为插件仓库 README 全文(原始内容,由公开目录抓取整理)。
# DeepSeek Harness · Image View
[](https://www.npmjs.com/package/@fzhiyu/dsh-image-view)
[](./LICENSE)
When the agent reads an image, show the image.
`read_image` already returns the picture — the tool commits the bytes through
the attachment service and hands the model an image block. The web UI just had
nowhere to draw it, so the call rendered as a grey line naming a path, and the
one thing you wanted to see was the one thing that was missing.
This plugin gives that call its own row.
## What changes
```
before read_image · /tmp/sp-sing.png
after View image · /tmp/sp-sing.png
[ the image, right there ]
```
The thumbnail fits a 240px long edge, and clicking it opens the original.
Nothing to expand: a row whose only real content is a picture should not make
you click to find out what the agent saw.
Everything else is untouched. This registers under one key — `read_image` — in
the Tool UI's keyed view slot, so every other tool row renders exactly as it did
before, and removing the plugin restores the generic row on the next boot.
## Install
```bash
dsh plugin --profile web add @fzhiyu/dsh-image-view
# restart DSH
```
## How it behaves
| Call state | Row |
|---|---|
| Running | Summary line with the shipped running sweep |
| Succeeded | Summary line plus the image, loading and retry included |
| Failed | The failure's first line, in the error colour, and no image |
| Interrupted | Marked stopped rather than failed |
A settled result that carries no image block degrades to its summary. The row
reports what the call actually returned; it never invents a picture.
## What it does not do
- **No Host half.** The bytes are already durable session history served by the
official `session.attachment` route. A second path to that data would be a
second thing to authorize correctly.
- **No private image stack.** Loading, retry, and the lightbox are the official
attachment components, resolved from the shell's platform module table — the
same instance chat history renders. A tool-result image and a pasted image
behave identically because they are the same component.
- **No other tool.** One key, claimed deliberately.
## Notes
Images are read under the rendering session's own authorization, through the
public session verb, and their object URLs are revoked when the plugin unloads —
a screenshot pinned for the life of the page is a leak, not a cache.
Targets DeepSeek Harness `0.1.0-rc.6`.
数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。