Read text
snipaya_read_textExtract text from images with on-device OCR, returning lines in reading order with bounding rectangles. Limit results by rectangle or image ID for targeted reading.
Instructions
Recognize text (on-device OCR) in the images and return the lines in reading order with their rects. Limit it with rect and/or imageId. Rects use the relativeTo space when set.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "snipaya_read_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rect | No | A rectangle (top-left corner plus size). Canvas units, or image pixels with relativeTo. | |
| tabId | No | Target tab id. Defaults to the active tab. | |
| imageId | No | Only read this image. | |
| relativeTo | No | Image id from snipaya_get_canvas. When set, all coordinates in this call are pixels of that image as captured (the same pixels you see in snipaya_render of that image). |