find_on_screen
Find any on-screen text and get its exact coordinates. Searches XML hierarchy first, then OCR fallback, to verify if buttons, labels, or messages are visible.
Instructions
Find specific text on the screen and return its location. Searches XML elements first (fast), falls back to OCR if not found. Use this to check if a button, label, or message is visible. Returns JSON with {text, x, y, w, h, method} or null if not found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| device | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |