read_text
Extracts text from scans, photos, and scanned PDFs using OCR; optional page cleanup straightens images and removes shadows to improve recognition.
Instructions
OCR: read the text of a scan, photo or scanned PDF. language is a Tesseract code or a mix like 'eng+por' or 'rus+ukr+eng'. clean_up straightens the page and removes shadows first (recommended for phone photos). Needs the tesseract program and the language packs installed.
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": "read_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| pages | No | ||
| clean_up | No | ||
| language | No | eng |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |