dsh-plugin-anydoc
Manifest valid★ 7DSH Plugin: Convert documents such as Word, PPT, Excel, PDF, EPUB, and CSV to GitHub-Flavored Markdown based on @firecrawl/anydoc
dsh-plugin-anydoc
一个 DeepSeek Harness (DSH) 插件,将 @firecrawl/anydoc 作为 anydoc 工具注册给 Agent,把多种文档格式转换为 GitHub-Flavored Markdown。
基于 @firecrawl/anydoc(Rust 原生绑定,napi-rs),在 libuv 线程池中执行,不阻塞事件循环,无需任何外部进程或 Python 环境。
支持的格式
| 类别 | 扩展名 |
|---|---|
| Word | .doc .docx .docm |
| PowerPoint | .ppt .pps .pot .pptx .pptm .ppsx .ppsm |
| Excel | .xls .xlsx .xlsm .xlsb |
| OpenDocument | .odt .ods .odp |
| Rich Text | .rtf |
| EPUB | .epub |
| CSV | .csv |
.pdf |
不支持 HTML、JSON、XML、图片与音频。
安装
dsh plugin --profile web add github:beancookie/dsh-plugin-anydoc
安装完成后直接启动:
dsh web
卸载
dsh plugin --profile web remove dsh-plugin-anydoc
使用
启动 DSH Web 后,向 Agent 发送类似指令:
请将 /path/to/report.docx 转换为 Markdown
Agent 会调用 anydoc 工具,返回转换后的 Markdown 内容。
工具参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
filePath | string | 是 | 要转换文件的绝对或相对路径 |
format | string | 否 | 显式指定格式(如 csv);缺省时根据文件内容自动检测 |
outputFilePath | string | 否 | 将结果写入该文件并返回摘要,而非返回完整 Markdown |
开发
# 安装依赖
pnpm install
# 编译 TypeScript 到 lib/
pnpm build
本地加载(--patch 开发模式):
pnpm dsh web --patch "/path/to/dsh-plugin-anydoc/dev.cordis.patch.yml"
社区
本项目积极支持并感谢 LINUX DO 社区——一个面向技术爱好者的友好交流空间。
许可
MIT
Comments
Loading…
Similar plugins
by jiekesu967
Adds a markitdown tool that converts PDF, Word, Excel, PowerPoint, HTML, CSV, EPUB and URLs to Markdown, using a real Microsoft MarkItDown installation when one is reachable and a bundled dependency-f
★ 0
↓ 283/wk
MIT
TypeScript
Sep 13, 2026
dsh plugin --profile web add dsh-markitdownby jiaoqsh
DeepSeek Harness plugin: read_document tool — Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, and PDF as Markdown for the model
★ 5
↓ 378/wk
MIT
TypeScript
Oct 4, 2026
dsh plugin --profile web add @jiaoqsh/dsh-documentby zhangjiabo522
DeepSeek Harness 文档工具插件:read/create/edit PDF/DOCX/XLSX/PPTX/CSV/Markdown(read_document、create_document、edit_document)
★ 0
MIT
TypeScript
Aug 15, 2026
dsh plugin --profile web add @deepseek-ai/dsh-tool-docby Z8906
读取 Office / PDF 前先转成 Markdown,用一行路径代替整份全文 —— 省 token 的 DSH bundle 插件。0 npm 依赖,转换全在本地,产物归你所有,卸载自动清理 Python 环境。 Convert Office/PDF to Markdown before reading in DeepSeek Harness — one path instead of the whole document.
★ 1
MIT
JavaScript
Oct 25, 2026
dsh plugin --profile web add dsh-plugin-office-markdownby pqkisvery666
DSH 办公文件插件:阅读 PDF/DOCX/XLSX/PPTX,生成 DOCX/XLSX/PPTX/PDF/CSV。A DSH plugin for reading and generating common office files.
★ 3
MIT
JavaScript
Sep 11, 2026
dsh plugin --profile web add dsh-basic-officeby jetformat
DeepSeek Harness plugin for Jetformat: Office to PDF and PDF tools via the local CLI
★ 2
MIT
TypeScript
Sep 27, 2026
dsh plugin --profile web add @jetformat/dsh-plugin