Read Text
read_textExtract visible text from an image via OCR, including signage, UI labels, and documents. Use it to pull readable strings from pixels for quick text capture.
Instructions
Extract visible text from an image (Florence-2 task).
Returns the text the model reads off the pixels — signage, UI labels, documents. Like all generative output it can misread; treat low-stakes.
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": {
"image_path": "<image_path>"
},
"name": "read_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_path | Yes | Absolute path to the image file | |
| max_new_tokens | No | Generation length cap (default 1024, max 4096) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||