DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-office-tools

k

dsh-office-tools

Manifest valid★ 9

Model-facing Office tools for DeepSeek Harness: Word (.docx), Excel (.xlsx), and PowerPoint (.pptx) create/read/update with workspace-safe paths and PPT image embedding.

ToolsSkillshasBundlePatch

dsh-office-tools

Eight model-facing Office file tools for DeepSeek Harness, running entirely in the plugin host half.

npm version ci License: MIT Listed on awesome-dsh-plugin

Install: dsh plugin --profile web add github:kw78/dsh-office-tools

DSH Store lists a fixed Commit; verify the installed source against it: ae1ddd40f98debf4b1430748d287951f35faaf36 (tag v1.0.0). Later commits on main carry test/doc additions only unless the version bumps.

Eight model-facing Office file tools for DeepSeek Harness, running entirely in the plugin host half — dependency-free since 1.0.0: every package is generated and parsed by this plugin's own OOXML engine, and every byte crosses the official DSH filesystem service (ctx.fs), never the raw file system.

ToolPurpose
word_createCreate .docx (title, paragraphs, bullets, one table)
word_readExtract text from any .docx; format: "markdown" renders headings, lists, and tables structurally
word_updateAppend paragraphs, bullets, and/or a table to an existing .docx
excel_createCreate a multi-sheet .xlsx from scalar cell grids
excel_readRead one or all sheets as scalar rows; formulas return cached values or '=…' strings
excel_updateReplace/create whole sheets, or write cells by A1 address
ppt_createCreate a 16:9 .pptx (title slide, titles, paragraphs, bullets, notes, linked PNG/JPG/GIF images) and echo every element's landing position
ppt_readExtract per-slide paragraphs, tables, speaker notes, image counts, alt texts — plus every shape's bounding box in inches and a text wireframe sketch

String cells starting with = are written as real Excel formulas (Excel computes them on open).

Demo

One prompt, a quarterly-report trio — Word with a metrics table, Excel with =SUM/variance formulas, PowerPoint with speaker notes:

One prompt generating report.docx, budget.xlsx, and deck.pptx

The prompt behind that session:

Generate the Q3 quarterly-report trio: report.docx (title, two summary paragraphs, three highlights, a metrics table), budget.xlsx (a Budget sheet with =SUM totals and plan-vs-actual variance formulas, plus a Summary sheet), and deck.pptx (title slide + three content slides with speaker notes).

The model turns it into word_create → excel_create → ppt_create (reads come back through word_read / excel_read / ppt_read; freshly written formulas read back as '=…' strings until Excel caches values). The whole flow is pinned by tests/demo-trio.spec.ts, so the demo cannot drift from the tools. The file sizes in the image come from a real run of that test scenario.

Harness integration

The plugin follows the standard DSH host-plugin contract:

  • It exports name / inject / apply / Config; inject = ['tools', 'fs'] — the official tool registry and the official filesystem service (@deepseek-ai/dsh-tools, @deepseek-ai/dsh-fs) are its only runtime service dependencies.
  • apply(ctx) wraps every ctx.tools.register(defineTool({...})) in ctx.effect(...) so Cordis disposes the registrations with the plugin fiber.
  • defineTool declares model-visible parameters, a validated canonical output.schema, and a pure output.render text projection.
  • execute(args, exec) resolves every path against exec.agent.session.header.cwd; relative paths stay in the session workspace and absolute paths are accepted only when still inside it. Containment and symlink resolution are enforced by the ctx.fs backend (plus a lexical pre-check here).
  • All reads arrive as raw bytes via ctx.fs.readBytes; all writes leave as UTF-8 text via ctx.fs.writeText — published atomically by the backend; overwrite defaults to false.
  • Generated packages are pure ASCII by construction (an ASCII-safe STORE zip planner pads each XML part and aligns offsets so every CRC/size/offset field stays byte-safe), which is exactly what lets real .docx/.xlsx/.pptx files travel through the text channel byte-identically. Non-ASCII text encodes as XML character references; every Office suite opens the result.
  • Reads accept any real-world package (STORE and DEFLATE entries, bounded by the zip-bomb guard).
  • word_update / excel_update re-publish through the text channel, so they work on packages whose every part is text (always true for files these tools write, and for OOXML packages without binary media); packages carrying binary media are refused with a clear error instead of being corrupted.
  • Images are LINKED, not embedded: the model controls placement fully (x/y/w/h inches, contain/cover cropping, alt text; PNG/JPG/GIF headers are sniffed so omitted dimensions default to natural size), and the deck references the workspace image file. Keep the image files next to the deck when moving it — that is the trade-off of a dependency-free, binary-free package.
  • ppt_create echoes the full layout (every element's box in inches + the canvas size + a text wireframe sketch per slide); ppt_read returns the same geometry for any deck, so the model can see and re-author compositions.

Build

pnpm install
pnpm run check   # typecheck + tests + build

Artifacts: lib/index.js (ESM host bundle of this plugin's own code only — ~116 kB, zero runtime dependencies) and lib/types/**/*.d.ts. Every @deepseek-ai/* package (cordis, the dsh services, schemastery) stays external and is provided by the profile's node_modules.

Install

# npm (recommended)
dsh plugin --profile web add dsh-office-tools

# GitHub source
dsh plugin --profile web add github:kw78/dsh-office-tools

# local checkout
dsh plugin --profile web add /path/to/dsh-office-tools

Restart the DSH server after installation. The eight tools appear in the next prompt assembly. Since 1.0.0 the plugin has zero runtime dependencies — no npm fetch, no CDN, no postinstall scripts; installation is the committed source, nothing else. The host must provide the fs service (every DSH profile that ships the built-in read/write tools does).

Configuration

The plugin declares a schemastery Config the Loader validates at load time. One option exists today:

OptionTypeDefaultEffect
enablePptToolsbooleantrueRegister ppt_create / ppt_read. Set to false to load this plugin for Word/Excel only.

enablePptTools: false exists for coexistence: dedicated presentation plugins such as dsh-ppt also register a ppt_create, and DSH refuses duplicate tool names at startup (tool "ppt_create" is already registered). Disable the PPT pair here and let the dedicated plugin own presentations:

# profile cordis.patch.yml
- insert:
    - id: dsh-office-tools
      config:
        enablePptTools: false

Community indexes

  • Registration blocks for awesome-dsh-plugin / dsh-market are in docs/hub-registration.md.
  • Recommended repository topics: dsh, dsh-plugin, deepseek-harness, office.

Safety

  • All file access is confined to the calling agent's session workspace.
  • Reads are capped at 50 MiB compressed; before anything is inflated, the archive's own declared sizes are checked against budgets (256 MiB per entry, 512 MiB per archive, 100 000 entries), so zip bombs are refused rather than decompressed. XML parts carrying DOCTYPE/ENTITY declarations are refused outright.
  • Text/cell results are bounded and mark truncated.
  • Creates/updates are bounded by row and cell limits and refuse overwrites by default.
  • No LibreOffice/PowerPoint/Word subprocess is spawned and no third-party library is shipped: formats are generated and parsed by this plugin's own ASCII-safe OOXML engine over node:zlib.
  • The plugin's own code never touches the file system directly — there is no node:fs import anywhere in src/; every byte flows through the official, user-visible ctx.fs service. This is what lets third-party store automation verify the whole runtime source deterministically (DSH Store issue #334: 1.0.0 passes the complete automatic low-risk policy — zero runtime dependencies, zero file/network/commands/credentials signals, bounded source, exact per-release compatibility declarations).
  • Roadmap: docs/ROADMAP.md.

Compatibility

DSH 0.2.1-rc.4: failedDSH 0.2.1-rc.3: failedDSH 0.2.1-alpha.5: failed

Versions

Latest versionPublishedSize
0.1.0——
1.0.3——
1.0.2——
1.0.4——
1.0.0——
0.2.0——
1.0.5——
1.0.6——
1.0.7——
1.0.8——

Comments

Loading…

Similar plugins

dsh-office

by omdsh-dev

办公三件套!Office document tools for DeepSeek Harness (dsh): generate, read, and edit spreadsheets (.xlsx), PDFs, and presentations (.pptx).

Tools & CapabilitiesManifest valid

★ 16

↓ 253/wk

Apache-2.0

TypeScript

Aug 16, 2026

dsh plugin --profile agent add @huiliyi37/dsh-office

by rong-coder

dsh plugin for DeepSeek Harness: complete Office document tools for the agent (create/read/edit .docx/.xlsx/.pptx via OfficeCLI) plus high-fidelity document preview in the dsh web sidebar through dsh-

Development & InfrastructureManifest valid

★ 6

MIT

TypeScript

Aug 17, 2026

dsh plugin --profile web add dsh-office-tool

by jiaoqsh

DeepSeek Harness plugin: read_document tool — Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, and PDF as Markdown for the model

Tools & CapabilitiesManifest valid

★ 5

↓ 378/wk

MIT

TypeScript

Oct 4, 2026

dsh plugin --profile web add @jiaoqsh/dsh-document

by zhangjiabo522

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

Manifest valid

★ 0

MIT

TypeScript

Aug 15, 2026

dsh plugin --profile web add @deepseek-ai/dsh-tool-doc

by dream-num

Give DeepSeek Harness a real office environment. Univer Office Plugin brings spreadsheets, docs, slides, canvases, relational tables, and more into one runtime — with connected data, validation, vers

Tools & CapabilitiesManifest valid

★ 631

↓ 9.1k/wk

Apache-2.0

TypeScript

Oct 8, 2026

dsh plugin --profile web add dsh-univer-office

by bauerelizabeth07139

DeepSeek Harness plugin: convert Word .docx to PDF with the dxpdf Rust/Skia engine — no Microsoft Office, no LibreOffice, no network. It repairs the schema-invalid constructs WPS Office writes and restores Word's odd/even page parity.

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Oct 6, 2026

dsh plugin --profile web add dsh-plugin-dxpdf