extract_image_text
Extract on-image text from PNG, JPEG, or WebP files in reading order with OCR, so source strings can be translated and localized.
Instructions
Extract text segments from an image, in reading order (OCR).
Use this as the first step when localizing an image: pull out the
on-image source strings, translate each with translate (so TM, style
guides, and brand voice apply), then re-render with localize_image.
Args: image_path: Path to a local PNG, JPEG, or WebP image file.
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": "extract_image_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |