ocr_and_translate
One call: OCR an image, then translate every line into target_lang. Arabic-first OCR and manga-aware Japanese with right-to-left-aware layout, followed by LLM translation. Automatic source-language detection. Provide the image as base64. Ideal for reading foreign documents, signs, manga, or receipts end-to-end in a single step.
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_base64": "<image_base64>",
"target_lang": "<target_lang>"
},
"name": "ocr_and_translate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Optional key (nsk_live_...). Auto-provisioned if omitted. | |
| target_lang | Yes | Language to translate into, as a name or code (e.g. English, ar, ja). | |
| image_base64 | Yes | The image encoded as base64 (a data: URI prefix is accepted and stripped). |