83079Vermont/dsh-mineru-parse-plugin0

mineru-parse-dsh-tool

独立的全局 DSH 插件,注册 parse_docs 模型工具。支持通过本地 MinerU 将 PDF、DOCX、PPTX、XLSX、TIFF 及批量图片解析为 Markdown 格式。

AI 分析

核心用途是让模型直接调用本地 MinerU 解析多格式文档。适合需要处理复杂文档解析且不希望依赖其他 Skill 包的 DSH 用户。

套件
mineru-parse-dsh-tool
版本
0.2.0
授權
MIT
最近更新
2026年8月14日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 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_SCRIPTabsolute path to an alternative parse.ps1; overrides the bundled script 自定义解析脚本,覆盖自带脚本
MINERU_BATconsumed by parse.ps1; absolute path to the MinerU executable 供 parse.ps1 定位 MinerU