DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Plugin Documents — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
P

dsh-plugin-documents

Plugin Documents

Model-facing DSH tools to read and write Word (.docx), PDF, and plain-text files

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:LR611415/dsh-plugin-documents#80a8461331ca7866d85b9827c7b5531acc19f228
READMECompatibilityVersions

Compatibility and provenance

Plugin Documents is published as dsh-plugin-documents and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
9/24/2026

Versions

0.1.0stable
9/24/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
9/24/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in productivity-workflow.

Acp App@deepseek-ai/dsh-acp-appThe dsh ACP profile bundle: automation-only JSON-RPC stdio and process lifecycle over dsh-baseClient Ui Task Board@linxin666/dsh-client-ui-task-boardHost-authoritative task board for the DSH Web GUI with real session execution, Host cron scheduling, and optional cross-platform idle-sleep protection; mounted without DSH source changes.Web All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / git-graph / pet / remote-web-ui / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。Codex Ui@michengai/dsh-codex-uiDSH Codex UI — 为 DeepSeek Harness Web 提供 Codex 风格侧栏、工作区会话树、全局搜索和轮次导航 · A Codex-style sidebar, workspace session tree, global search, and turn navigation for DSH Web

README

dsh-plugin-documents

一个 DeepSeek Harness (DSH / Cordis) 插件,给模型提供两个工具,用来读写 Word (.docx)、PDF 和纯文本 (.txt/.md 等) 文件。

工具

read_document

读取一个 .docx / .pdf / 文本文件,返回提取出的纯文本内容。

参数类型必填说明
file_pathstring是要读取的文件路径(相对路径按会话工作目录解析)
formatstring否auto(默认,按扩展名识别)/ text / docx / pdf

write_document

把纯文本内容写入一个 .docx / .pdf / 文本文件。输出格式由扩展名决定。

参数类型必填说明
file_pathstring是目标路径;扩展名决定格式(.docx / .pdf / 文本)
contentstring是要写入的文本内容

能力与限制

  • 文本:读写 .txt .md 等 UTF-8 文本文件。
  • Word (.docx):读——提取 word/document.xml 中的段落/表格文本;写——生成一个最小但合法、可用 Word/WPS 打开的 .docx(每个换行一个段落,支持中文)。
  • PDF:读——扫描对象、解压 Flate/ASCIIHex/ASCII85/RunLength 流,提取 Tj/TJ/'/"/T* 文本,支持 CID 字体的 UTF-16BE(中文可提取);写——生成带经典 xref 的合法 PDF,使用内置 Adobe STSong-Light + UniGB-UCS2-H 绘制,中文/英文可直接显示(Adobe Reader、Chrome/Edge、Foxit、WPS)。

限制(best-effort):PDF 读取无法 OCR 图片型 PDF,也不处理加密 PDF;复杂排版(表格、分栏)会按内容流顺序摊平成文本。.doc(老式二进制 Word)不支持,请先另存为 .docx。

安装

插件是一个带 dsh.bundle 声明的 npm 包。用 dsh 命令行装进某个 profile:

# 从本地目录安装(profile 名按你的实际 profile 填,桌面默认通常是 web)
dsh plugin --profile web add "C:\\Users\\李\\Desktop\\知识点\\dsh-plugin-documents"

dsh plugin 会在 profile 目录里用 pnpm 安装这个包,并自动把它加进 dsh.profile.bundles。装完后重启 DSH Desktop 即可。

也可以手动安装:把本目录放进 profile 的 node_modules,并在 profile 的 package.json 里把 dsh-plugin-documents 加进 dsh.profile.bundles 数组。

目录结构

dsh-plugin-documents/
├── package.json          # 声明 dsh.bundle.patch + adm-zip 依赖
├── cordis.patch.yml      # 把插件插入 entry list
├── README.md
└── lib/
    ├── index.js          # 插件入口,注册 read_document / write_document
    ├── util.js           # 格式识别 + XML 转义
    ├── docx.js           # Word 读写
    └── pdf.js            # PDF 读写