dsh-doc-reader

DSH PLUGIN视觉与多模态

仓库 reg4916/dsh-doc-reader

视觉与多模态 L3 · 安装规范通过 安全审查:低风险 可信度:银 可安装插件
安装这个插件

dsh-doc-reader 是 reg4916 维护的 视觉与多模态 类 DSH 可安装插件, 仓库为 reg4916/dsh-doc-reader,许可证 MIT。 下面按「装什么、怎么装、验没验过、跑起来要注意什么」逐项列出。

一句话选型结论

按资料字段整理

dsh-doc-reader 是视觉与多模态类的 DSH 可安装插件,验证等级 L3 · 安装规范通过,安全审查为低风险,有可直接复制的安装命令。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类视觉与多模态 收录类型可安装插件 验证等级L3 · 安装规范通过 安全审查低风险
验证等级 L3 L3 · 安装规范通过
GitHub 星标 0 复刻 0 · 未关闭 issue 0
最近更新 2026-10-27 创建于 2026-10-27
README 6.2 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add github:reg4916/dsh-doc-reader
  1. 1
    确认版本与运行环境

    仓库没有标注兼容版本与 Node.js 要求,先确认你的 DSH 版本能装,再继续。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本未标注版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名未发布到 npm可用 npm view 查看包信息

能做什么

视觉与多模态
字段来自项目仓库与公开索引,中文说明由本站标注

适用场景

办公自动化视觉识别

上游标签

deepseek-harnessdocument-readerdocxdshdsh-pluginocrpdfpptxtesseractxlsx

验证等级与安全审查

L3 · 安装规范通过
自动化流程结论,不是人工审核
验证等级L3 · 安装规范通过安装命令可解析、DSH 版本已声明,未做实际安装
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度活跃按仓库活跃度与最近更新时间给出
可信度银综合仓库活跃度与验证结果

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 验证等级 L3:安装命令能解析、兼容版本已声明,至少不会一装就报格式错。
  • 静态安全审查为低风险,没有发现明显可疑行为。
  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有声明 Node.js 版本要求,版本不匹配可能装不上。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在视觉与多模态场景里给 DSH 补能力的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-doc-reader当前 L3 · 安装规范通过 低风险 0 未标注 有
open-design L4 · 沙盒安装通过 低风险 10.0 万 未标注 有
awesome-gpt-image-2 L3 · 安装规范通过 低风险 3.4 万 未标注 无
PicGo L3 · 安装规范通过 低风险 2.7 万 未标注 无
iPolloWork L4 · 沙盒安装通过 低风险 6,775 未标注 有
modlens L5 · 运行验证通过 低风险 4,207 0.2.0-rc.2 等 13 个 有

仓库档案

视觉与多模态
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方reg4916仓库 dsh-doc-reader · 默认分支 master
分类视觉与多模态vision
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言未标注仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue0 / 0 / 0收录时的数值,非实时
创建 / 更新2026-10-27 · 2026-10-27最后推送 2026-10-27
本站收录2026-10-30首次进入本站目录的时间

README 全文

6.2 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-doc-reader



Read PDF, DOCX, XLSX, PPTX and text documents as agent tools for DeepSeek Harness (dsh).

The built-in read tool returns file text, and web_fetch rejects application/pdf — so a PDF, a spreadsheet or a slide deck currently ends up as curl + pip install pypdf inside the session. This plugin closes that gap with five typed tools that return page-, sheet- and slide-aware text, including local OCR for scans and screenshots.

Screenshots

doc_read — page-aware PDF text and spreadsheet rows:

doc_ocr — local OCR for scans and images, with per-page confidence:

Tools

Tool What it does Key parameters
doc_read Universal reader: PDF, DOCX, XLSX, PPTX, TXT/MD/CSV/HTML; auto-detects format by magic bytes path | url, format, pages, sheet, maxRows, maxChars
pdf_read PDF page by page with --- page N/M --- markers, title/author metadata path | url, pages (e.g. "1-3,7"), maxChars
xlsx_read One block per sheet, tab-separated rows, sheet by name or 1-based index path | url, sheet, maxRows, maxChars
doc_meta Metadata only: format, size, PDF page count/title, DOCX props, XLSX sheets, PPTX slide count path | url, format
doc_ocr OCR for scanned PDFs and images (PNG/JPEG/WebP/BMP/TIFF/GIF), per-page confidence path | url, pages, langs, scale, maxChars

Every tool accepts a local path or an http(s) URL. Prefer doc_meta first for large files, then read the pages/sheets you need — output is capped by maxChars (default 60000, hard cap 400000).

Example output

# invoice.pdf — PDF · 184.2 KB
# source: /work/invoice.pdf
# pages 1, 2 of 7 · title: Invoice 2026-10

--- page 1/7 ---
ACME Ltd — Invoice 0042
...
# budget.xlsx — XLSX · 12.4 KB
# source: https://example.com/budget.xlsx
# sheets: Data, Second

## sheet "Data" — 3 rows × 3 cols
1 | Year | Revenue | Note
2 | 2024 | 1000    | ok
3 | 2025 | 2000    | Привет

OCR

doc_ocr handles what pure text extraction cannot: scanned PDFs, photos and screenshots.

  • Engine: tesseract.js 7 (WebAssembly, no native OCR binary) — runs fully locally, nothing is uploaded.
  • PDF pages are rasterized with pdf-to-img (pdf.js + @napi-rs/canvas) at scale 2 (~200 DPI), then recognized with one shared worker.
  • Fax-style CCITT G4 and JBIG2 scans are decoded through pdf.js wasm/JS decoders (wasmUrl is wired to the installed pdfjs-dist/wasm), so two-tone scans rasterize instead of returning blank pages.
  • Default languages: rus+eng (langs overrides, e.g. "deu", "eng"). Order matters: with eng+rus tesseract reads uppercase Cyrillic as Latin lookalikes (ПРИВЕТ → NMPUBET); Cyrillic-first keeps Latin accuracy identical (measured 94–95% on both fixture sets).
  • First use downloads the language data (~4 MB per language) into ~/.dsh/cache/dsh-doc-reader/tesseract; later calls are fast (a page takes ~0.3–1 s). For offline machines set DSH_DOC_READER_OCR_LANG_PATH to a directory containing .traineddata (optionally .gz), and/or DSH_DOC_READER_OCR_CACHE for the cache location.
  • At most 20 PDF pages per call; narrow with pages. Use scale: 1 for speed, scale: 3 for small print.
  • Rotation/handwriting/low-resolution scans are best-effort: tesseract has no layout magic, and confidence is reported per page so you can judge the result.
# scan.pdf — PDF (OCR) · 1.8 MB
# source: /work/scan.pdf
# OCR: tesseract rus+eng · pages 1, 2 of 12

--- page 1/12 (ocr, 91.4%) ---
INVOICE 2026-042
...

Limits and security

  • Local files: up to 50 MB; URLs: downloaded with a 20 s timeout and the same 50 MB cap.
  • Private/local hosts are refused (localhost, 127.0.0.1, RFC1918, .local, .internal) so the tool cannot become an SSRF primitive. Download the file and pass a path instead.
  • Only http(s) URLs.
  • PDF text extraction is text-based: scanned PDFs (images only) return (no extractable text on this page) — use doc_ocr for those.
  • DOCX conversion is handled by mammoth; charts, comments and tracked changes are not materialized as text.
  • XLSX returns displayed values, not formulas; rows are paged with maxRows.

Install

Published on npm as dsh-doc-reader. Install from the built-in plugin market, or manually into a profile:

cd ~/.dsh/profiles/desktop
npx pnpm add dsh-doc-reader

Then add the bundle to the profile's package.json:

"dsh": { "profile": { "bundles": ["dsh-doc-reader", "..."] } }

Restart DSH (the plugin loads on boot; DSH composition is all-or-nothing). The five tools appear in the next session.

For local development, install the working copy instead: npx pnpm add link:~/dsh-plugins/dsh-doc-reader.

> pnpm 12 may report an ignored build script for tesseract.js. That postinstall is only the OpenCollective banner — approve it with pnpm approve-builds or ignore it; OCR works either way.

Develop

npm install
npm test          # node --test, runs against test/fixtures
node --check index.js

The readers live in lib/ and have no host dependency, so they can be exercised directly:

import { readDocument, documentMeta } from "./lib/read.js";
await readDocument({ path: "report.pdf", pages: "1-3" });

index.js imports @deepseek-ai/dsh-tools for defineTool; outside a DSH host the import falls back to an identity definition (the registry consumes the plain object).

Roadmap

  • .doc, .rtf, .odt, .epub readers.
  • Layout hints from OCR (word boxes, tables) and page-number citations.
  • Page/sheet images for vision models (presentResult image parts).
  • Caching of parsed documents within a session.

License

MIT

常见问题

6 问
答案由本站依据条目字段整理,不引用上游原文
dsh-doc-reader 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add github:reg4916/dsh-doc-reader` 即可。

dsh-doc-reader 的验证等级是什么意思?

L3 · 安装规范通过。安装命令可解析、DSH 版本已声明,未做实际安装

dsh-doc-reader 安全吗?

低风险。

dsh-doc-reader 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-doc-reader 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

视觉与多模态
按星标排序,可作替代方案

open-design

open-design

L4 · 沙盒安装通过 10.0 万 星

awesome-gpt-image-2

awesome-gpt-image-2

GPT Image 2 / 2.5 提示词与案例库,530+ 个案例、20+ 套工业级模板与可复用 Skills,新增 2.5 同提示词对比

L3 · 安装规范通过 3.4 万 星

PicGo

PicGo

L3 · 安装规范通过 2.7 万 星

iPolloWork

iPolloWork

L4 · 沙盒安装通过 6,775 星

modlens

modlens

ModLens 是 DeepSeek Harness 的视觉插件,为纯文本模型外挂视觉能力,粘贴图片即得结构化 JSON 证据(OCR、版面

L5 · 运行验证通过 4,207 星

OpenBiliClaw

OpenBiliClaw

本地私有、开源的自进化跨平台 AI 内容发现 Agent:先理解你,再主动从 B站、小红书、抖音、YouTube、X、知乎、Reddit、微

L4 · 沙盒安装通过 3,398 星

reg4916 的其它插件

3 个

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 —。