Install
openclaw skills install mistral-ocrConvert PDF/images to Markdown/JSON/HTML using Mistral OCR API. Supports image extraction, table recognition, header/footer handling, and multi-column layouts. Usage: Upload a file and say Use Mistral OCR to process this.
openclaw skills install mistral-ocrIMPORTANT - READ BEFORE INSTALLING:
This skill uploads your files to Mistral's cloud servers for OCR processing.
Do NOT use with sensitive or confidential documents unless:
For sensitive documents, use offline/local OCR tools instead.
A powerful OCR tool that converts PDF files and images into Markdown, JSON, or HTML formats using Mistral's state-of-the-art OCR API.
# Clone or download this repository
git clone https://github.com/YZDame/Mistral-OCR-SKILL.git
cd Mistral-OCR-SKILL
# Install dependencies
pip install -r requirements.txt
Get your API key: 👉 https://console.mistral.ai/home
Set the environment variable:
export MISTRAL_API_KEY=your_api_key
cd scripts
# Process PDF to Markdown
python3 mistral_ocr.py -i input.pdf
# Process PDF to JSON
python3 mistral_ocr.py -i input.pdf -f json
# Specify output directory
python3 mistral_ocr.py -i input.pdf -o ~/my_ocr_results
| Flag | Description |
|---|---|
-i, --input | Input file path (required) |
-f, --format | Output format: markdown/json/html (default: markdown) |
-o, --output | Output directory |
What happens to your files:
For more details, see: https://mistral.ai/privacy-policy
MIT