cua_ocr
Run offline Chinese and English OCR on screens, app windows, or image files to extract exact text and click coordinates for GUI automation, including OpenGL/Metal/DirectX apps.
Instructions
Run offline Chinese+English OCR (Apple Vision on macOS / WinRT Windows.Media.Ocr on Windows) on the screen, an app window, or an image file. Returns exact text, click coordinates (cx, cy), normalized [0..1000] boxes, and element ref IDs. Essential for OpenGL/Metal/DirectX apps like Blender, Photoshop, and DaVinci Resolve.
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": "cua_ocr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fast | No | ||
| query | No | Optional substring filter on recognized text. | |
| target | No | full | |
| display | No | ||
| app_name | No | ||
| image_path | No | Optional existing PNG/JPG path to OCR instead of capturing screen. |