360 Secure SkillHub
360 安全技能中心

Doc Analysis

通过 mineru-open-api 命令行工具调用 MinerU 文档解析服务,分析 .doc/.docx 文件(本地文件或 URL),返回保留标题、段落、列表与表格结构的 Markdown;支持语言提示,.docx 可用免 Token 的快速模式,.doc 仅支持需 Token 的完整模式。

mzlzyca
mzlzyca
热度 52.71
最近更新 2026-05-11 17:37:15
分类:数据依赖:代码执行 / 读写文件 / 第三方 API应用场景:数据处理 / 文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add doc-analysis
Metadata
name
doc-analysis
description
Analyze the structure, layout, and content of Word documents (.doc, .docx) using MinerU. Returns structured Markdown with headings, paragraphs, tables, and layout information preserved. Features: deep document analysis preserving structure hierarchy. Extracts headings, lists, tables, and paragraph boundaries. Supports legacy .doc and modern .docx. Full analysis mode reveals document layout and formatting patterns. Use when you need to: analyze a Word document's content, understand document structure, inspect layout of a .docx file, get a structural overview of a Word file. Use when asked: 'how do I analyze this Word document', 'what is the structure of this docx', 'I want to understand this Word file layout', 'can my agent analyze a Word document', 'break down this .doc file for me'. Built on MinerU by OpenDataLab (Shanghai AI Lab), an open-source document intelligence engine. Supports English, Chinese, and multilingual content. Works with local files and URLs. Perfect for researchers, editors, and quality assurance teams who need to understand document structure before processing, editing, or converting Word files.
homepage
https://mineru.net
metadata
{"openclaw":{"emoji":"📄","requires":{"bins":["mineru-open-api"],"env":["MINERU_TOKEN"]},"primaryEnv":"MINERU_TOKEN","install":[{"id":"npm","kind":"node","package":"mineru-open-api","bins":["mineru-open-api"],"label":"Install via npm"},{"id":"go","kind":"go","package":"github.com/opendatalab/MinerU-Ecosystem/cli/mineru-open-api","bins":["mineru-open-api"],"label":"Install via go install","os":["darwin","linux"]}]}}

Doc Analysis

Analyze and extract structured content from Word (.doc/.docx) files using MinerU. Returns Markdown with layout, headings, and structure preserved.

Install

npm install -g mineru-open-api
# or via Go (macOS/Linux):
go install github.com/opendatalab/MinerU-Ecosystem/cli/mineru-open-api@latest

Quick Start

# Analyze a .docx file (requires token)
mineru-open-api extract report.docx -o ./out/

# Analyze a .doc file (requires token)
mineru-open-api extract report.doc -o ./out/

# Specify language
mineru-open-api extract report.docx --language en -o ./out/

Authentication

Token required:

mineru-open-api auth             # Interactive token setup
export MINERU_TOKEN="your-token" # Or via environment variable

Create token at: https://mineru.net/apiManage/token

Capabilities

  • Supported input: .doc, .docx (local file or URL)
  • Preserves document structure: headings, paragraphs, lists, tables
  • Requires token (mineru-open-api auth or MINERU_TOKEN env)
  • Language hint with --language (default: ch, use en for English)

Notes

  • .doc (legacy Word format) is only supported by extract (requires token)
  • .docx supports both flash-extract (no token, quick) and extract (full features)
  • Output goes to stdout by default; use -o <dir> to save to a file or directory
  • All progress/status messages go to stderr; document content goes to stdout
  • MinerU is open-source by OpenDataLab (Shanghai AI Lab): https://github.com/opendatalab/MinerU