Skip to main content
Point at a target with a locator before you act on it. Use visible text when a label exists and a description when the target is easier to describe. Building a locator sends nothing: each action finds the target on the screen at that moment and waits until it is ready, up to 5 seconds by default. The examples assume you already selected a dedicated-phone session.

Find by visible text

Text matching is read by OCR. By default the match is a case-insensitive substring. Pass exact=True (Go: mobile.Exact()) for a case-sensitive exact match instead.
find-text searches one snapshot of the screen. A miss succeeds with null in JSON output.
To check whether something is on screen without waiting, use count(). It reports the matches right now, zero included:

Find every text match

Search one observed screen for a list of matches. Use a substring for a simple list or a regular expression for structured text. The two criteria are mutually exclusive.
With neither criterion, find-all-text returns every OCR text element. Add --ocr-engine premium for a harder screen.

Find by description

A description uses a billable vision model. When the target never appears, the action fails with a timeout.
find waits up to --timeout (10 seconds by default). A target that never appears exits with the timeout status (5). Use axilio phone tap --query "the search icon" to find and tap in one command.
Review individual inference charges in Usage. Prefer text when a stable visible label exists.

Narrow a match

When several targets match, pick one by position, by what contains it, or by a description:
nth counts from zero in reading order. Plain text is an OCR match; anything more, such as a description, nth, within, has, or filter, resolves with one vision-model call.

Choose the OCR engine and model

find, find-all-text, observe, and tap --query accept an OCR-engine override. find-text and wait-for do not.
Locator actions run on the phone side over DCP Locator.* methods. The find-text and find-all-text commands and the Screen queries search one Screen.observe snapshot. None of these live phone operations is a REST endpoint.

Next steps

Tap

Act on what you found.

Wait

Wait for a target before acting.

Locator reference

Every locator action and refinement.

Models

Choose a vision model and understand inference pricing.