83079Vermont/dsh-mineru-parse-plugin ↗★ 0
mineru-parse-dsh-tool
独立的全局 DSH 插件,注册 parse_docs 模型工具。支持通过本地 MinerU 将 PDF、DOCX、PPTX、XLSX、TIFF 及批量图片解析为 Markdown 格式。
AI 分析
核心用途是让模型直接调用本地 MinerU 解析多格式文档。适合需要处理复杂文档解析且不希望依赖其他 Skill 包的 DSH 用户。
安裝
此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗
說明文件
閱讀完整 README ↗For DSH users / 使用者
## Usage / 使用
Model-invocable tool. Parameters / 模型可直接调用的工具,参数如下:
| Param 参数 | Type 类型 | Description 说明 |
|---|---|---|
| `paths` | `string[]` | **required / 必填** — absolute file paths 绝对路径(可多个,合并为一次调用) |
| `backend` | `auto` \| `hybrid-engine` \| `pipeline` \| `vlm-engine` | default `auto`: /.mineru-output` 输出根目录 |
| `timeout_ms` | `number` | default `600000` |
| `sandbox_permissions` | `workspace-write` \| `danger-full-access` | only with `justification`; widens this one call 仅本次调用升级沙箱权限 |
| `justification` | `string` | one-sentence reason, required with `sandbox_permissions` 一句话理由,与前者成对 |
Example / 示例:
```js
parse_docs({
paths: ["C:\\docs\\report.pdf", "C:\\docs\\fig1.png"],
backend: "auto",
});
Configuration / 配置
| Env var 环境变量 | Purpose 说明 |
|---|---|
DSH_MINERU_PARSE_SCRIPT | absolute path to an alternative parse.ps1; overrides the bundled script 自定义解析脚本,覆盖自带脚本 |
MINERU_BAT | consumed by parse.ps1; absolute path to the MinerU executable 供 parse.ps1 定位 MinerU |