โ† All skills
Tencent SkillHub ยท Developer Tools

Mistral PDF OCR

Extracts text, tables, and images from PDFs (including scanned PDFs) using the Mistral OCR API. Use when user asks to OCR a PDF/image, extract text from a PD...

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Extracts text, tables, and images from PDFs (including scanned PDFs) using the Mistral OCR API. Use when user asks to OCR a PDF/image, extract text from a PD...

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, scripts/mistral_ocr_extract.py, scripts/requirements.txt, references/mistral_ocr_api.md, references/output_mapping.md, references/annotation_prompts.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 5 sections Open source page

Quick start (default)

Run the bundled script to OCR a local PDF and write Markdown + JSON outputs: python {baseDir}/scripts/mistral_ocr_extract.py --input path/to/file.pdf --out out/ocr Output directory layout: combined.md (all pages concatenated) pages/page-000.md (per-page markdown) raw_response.json (full OCR response) images/ (decoded embedded images, if requested) tables/ (separate tables, if requested)

Workflow

Pick input mode Local PDF (most common): upload via Files API, then OCR via file_id. Public URL: OCR directly via document_url. Choose output fidelity (defaults are safe for RAG) Keep table_format=inline unless the user explicitly wants tables split out. Set --include-image-base64 when the user needs figures/diagrams extracted. Use --extract-header/--extract-footer if header/footer noise hurts downstream search. Run OCR Use scripts/mistral_ocr_extract.py to produce a deterministic on-disk artefact set. (Optional) Structured extraction from the whole document If the user wants fields (invoice totals, contract parties, etc.), provide an annotation prompt. The OCR API can return a document-level document_annotation in addition to page markdown. Example: python {baseDir}/scripts/mistral_ocr_extract.py \ --input invoice.pdf \ --out out/invoice \ --annotation-prompt "Extract supplier_name, invoice_number, invoice_date (ISO-8601), currency, total_amount. Return JSON." \ --annotation-format json_object

Decision rules

If the PDF is local and not publicly accessible, upload it (the script does this automatically). If the PDF URL is private or requires authentication, do not pass it as document_url; upload instead. If output quality is critical, prefer table_format=html for downstream parsing over brittle regex.

Common failure modes

Missing MISTRAL_API_KEY: set it in the environment before running. URL OCR fails: the URL likely is not publicly accessible; upload the file. Large files: upload supports large files, but very large PDFs may need page selection (--pages) or batch processing.

References

API + parameters: references/mistral_ocr_api.md Output mapping rules (placeholders to extracted images/tables): references/output_mapping.md Example annotation prompts for common document types: references/annotation_prompts.md

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
4 Docs1 Scripts1 Files
  • SKILL.md Primary doc
  • references/annotation_prompts.md Docs
  • references/mistral_ocr_api.md Docs
  • references/output_mapping.md Docs
  • scripts/mistral_ocr_extract.py Scripts
  • scripts/requirements.txt Files