zhangjiabo522/dsh-tool-doc

zhangjiabo522★ 0TypeScript最后同步: 2026-08-15

在 GitHub 打开

DeepSeek Harness 文档工具插件:read/create/edit PDF/DOCX/XLSX/PPTX/CSV/Markdown(read_document、create_document、edit_document)

README 摘要

@deepseek-ai/dsh-tool-doc English 中文 Model-facing document tools: read, create and edit PDF / DOCX / XLSX / PPTX / CSV / Markdown files without shelling out to external utilities. What it does Registers three tools on ctx.tools : - read document(file path) — reads PDF (text layer, page by page), DOCX (mammoth), XLSX (every sheet, cell values), PPTX (per-slide text), CSV (delimiter-sniffed, quote-aware) and plain text (md/txt/yaml/json/log). Output is bounded by maxTextChars (default 200,000) with an explicit truncation notice. Scanned/image-only PDFs yield no text. - create document(file path, content) — creates a NEW file; the target must not exist (createIfAbsent semantics — use edit document to change an existing file). DOCX/PDF take Markdown-lite text ( / / headings, - bullets) plus title and (DOCX) tables ; XLSX takes sheets ; CSV takes rows ; md/txt take plain text . PDF embeds a system CJK font when one is discoverable ( cjkFontPath config overrides the search). - edit document(file path, operations) — applies ordered literal edits in place. DOCX: replace text (inside single text runs, count defaults to 1, 'all' replaces every match) and append paragraph . XLSX: set cell / a…

在 GitHub 查看完整 README →
工具/开发deepseek-harnessdsh-plugin

分类