GHJIVHIDD/dsh-plugin-canvas0

@deepseek-ai/dsh-plugin-canvas

Canvas preview plugin for DeepSeek Harness (DSH): a 画布 (Canvas) tab next to chat/trajectory for interactive HTML design prototyping, with canvas_preview model tool (render/annotate/clear), local file/URL preview, privacy masking and sandboxed iframe rendering.

AI 分析

核心用途是提供 HTML 原型的可视化渲染与标注。适合需要让 Agent 渲染本地 HTML/URL、在画布上添加位置标注,并支持沙箱化 iframe 渲染的设计与开发任务。

パッケージ
@deepseek-ai/dsh-plugin-canvas
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/15

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:GHJIVHIDD/dsh-plugin-canvas

ドキュメント

README 全文を読む ↗

直接使用 GitHub 仓库地址

dsh plugin --profile web add github:GHJIVHIDD/dsh-plugin-canvas

使用示例(智能体视角)

请把 /workspace/design/index.html 渲染到画布,并标注“导航栏间距过大”。
→ canvas_preview(mode="render", file="/workspace/design/index.html",
                 annotations=[{"x":50,"y":12,"note":"导航栏间距过大,建议改为 24px"}])
在刚才的画布上追加两条备注。
→ canvas_preview(mode="annotate", notes=["按钮圆角建议统一为 8px", "移动端需要补充断点"])
清空画布。
→ canvas_preview(mode="clear")

🔧 Configuration / 配置

环境变量说明默认值
DSH_CANVAS_ALLOW_ROOTS额外允许读取的本地目录,多个用 : 分隔当前工作目录 + ~/.dsh/canvas

示例:

DSH_CANVAS_ALLOW_ROOTS=/Users/me/designs:/Users/me/prototypes dsh --profile web