ocr_layout_xiaomi
Extract text and document layout locally with Xiaomi OCR, returning content blocks with bounding boxes, Markdown, HTML tables, and LaTeX formulas.
Instructions
Extract text with layout analysis. Returns blocks with bounding boxes.
Backend: xiaomi. Xiaomi-OCR-0 — local 0.8B document-parsing VLM (transformers; Apple Silicon MPS, CUDA or CPU). Best structure fidelity: Markdown output, HTML tables, LaTeX formulas, key-information extraction. Strong on Cyrillic, English, German and Japanese; Arabic/Korean are weak.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "ocr_layout_xiaomi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |