Read text from an image
read_image_textExtract text from an image with Tesseract. language defaults to eng. Other codes in the list are fetched when first used. Send base64 or a public URL. Private addresses are refused and the decoded file is capped at 10 MB. Returns the text and a confidence from 0 to 100. An image with no text returns an empty string.
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": {
"file": "<file>"
},
"name": "read_image_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The image. Provide url or data. | |
| language | No | A Tesseract language code such as eng, spa, fra, deu, or jpn. | eng |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| language | Yes | ||
| confidence | Yes |