Endpoint
Overview
Taps once, at the center of a target found on the screen as it is now. WithholdMs, the finger stays down that long: a long press. The target is one of:
region limits a text or label target to part of the screen ([x0, y0, x1, y1], fractions 0 to 1); nth picks the second, third… match from the top.
When nothing matches, the phone’s result is the error target_not_found with candidates: the closest text lines (or elements) on the screen, so you can tap one of them next. An element from a screen that is no longer showing is stale_screen.
Tap never posts, sends, likes, follows or deletes on purpose. For an action that cannot be undone, use Commit: it taps once per key, whatever happens.
Requires an active session on each phone.
Platforms: Android, iPhone.
Request Body
One phone, instead of
phoneIds. The answer’s data is then that phone’s result itself, not a list, and a failure on the phone is the request’s ok: false with the phone’s error (at the HTTP status of its code). Give phoneId or phoneIds, not both.Hold the finger down this long, from
80 to 10000 milliseconds: a long press on the target. Without it, a tap.Look at the screen after the action, in the same answer. The hub takes a frame before the action, does it, waits until the screen settles (two frames about 300 ms apart that look the same, for at most
settleMs), and adds screen, effect and, when the action should have changed the screen and did not, warnings to the phone’s result. Costs one look at the screen plus the wait.Response
One Result per phone, in the order of
phoneIds.