ralfsqual/dsh-pdf-reader

ralfsqual★ 0JavaScriptLast synced: 2026-08-15

Open on GitHub

dsh-pdf-reader: DeepSeek Harness plugin adding a read_pdf tool (local PDF text extraction via pdfjs-dist)

README excerpt

dsh-pdf-reader A DeepSeek Harness plugin that adds a read pdf tool, extracting text from PDF files page by page. Fully local parsing — no upload, no network access. 为 DeepSeek Harness 增加 read pdf 工具,逐页提取 PDF 文本。纯本地解析,不上传、不联网。 Install / 安装 Or install from a local checkout / 或本地安装: Restart dsh web afterwards. The read pdf tool becomes available to the agent in new sessions. 重启 dsh web 后生效,新会话中 Agent 即可调用 read pdf 。 Usage / 使用 Tell the agent to read a PDF, or combine it with an @ file mention (e.g. via dsh-at-file ): Tool parameters Parameter Type Description path string PDF path, relative to the current working directory or an absolute path inside the workspace. / 相对当前工作目录或工作区内绝对路径 maxPages number Max pages to extract, default 500 ; 0 = no limit. / 最多提取页数 maxChars number Max characters to return, default 120000 . / 最多返回字符数 How it works / 工作原理 - Registered as a model tool via defineTool ( @deepseek-ai/dsh-tools ). - Parses the PDF with pdfjs-dist ( 2.6.347 ), extracting text per page with page N separators. - Output is a structured object ( pages , extractedPages , truncated , empty , text ) with a readable render. Security / 安全 - Workspace-confined : path must resolve inside the curr…

View full README on GitHub →
Tools / Devdsh-pluginagent

Category