mineru-ocr-local-api
Installation
SKILL.md
MinerU OCR Local API
Hard Rules
- Use
python scripts/mineru_caller.pyfor every MinerU request. - Do not parse the document yourself as a fallback.
- If MinerU returns an error, show the error and stop.
- Treat the saved JSON envelope and generated artifact files as the source of truth.
- Prefer the top-level
textfield when the user asks for the full extracted document.
Choose The Mode
- Use
--mode apiwhen the user wants the hosted MinerU service, already hasMINERU_API_TOKEN, needs URL input, or wants the official cloud API workflow. - Use
--mode localwhen the user wants the open-source MinerU runtime fromhttps://github.com/opendatalab/MinerU, wants data to stay local, or explicitly asks for local parsing. - Use
--mode autoonly when the user does not care which mode is used.autoprefers API whenMINERU_API_TOKENis configured and falls back to local only for local files.
Standard Workflow
- For a hosted API parse from URL: