act
Runs ordered gestures on an Android phone—tap, type, swipe, scroll, wait—and returns the updated screen. Stops at the first failure and can save or replay routines.
Instructions
Gestures on the phone, in order (stops at the first error), then the updated screen. Steps: tap, long_press, double_tap, type (any text, accents and emoji included; target = field to tap first; non-ASCII is pasted through the clipboard, which is then given back to the user unchanged), clear, key (back, home, recent, delete, ctrl+a, arrows, tab, volume; enter and other KEYCODE_*: confirm=true + accord, alone in their step), scroll (direction = reading direction: down to see what follows), swipe (target → to), drag (held, moved, dropped: target → to), zoom (direction in|out, target = center, amount 1-3), wait (text appeared, or gone=true), open_url (text = address or app link). Target: "[N]" (brackets; a bare number is text), visible text or "x,y" image pixels; judged on the screen read again just before the gesture. Report: ✓ effect read back, ~ sent not verified, ✗ failed/refused, ? link lost (unknown effect). then: auto (default: elements, plus the image if a step is ✗ ?, or ~ on an unchanged screen, or nothing is readable), both, image, elements, changes (text only: elements added "+", changed "~" and removed "-" since the last list, unchanged ones counted; [N] numbers stay valid for the next act; full list when there is no previous list, the foreground app changed or most of the screen did), none. Example: steps=[{"do":"tap","target":"Search"},{"do":"type","text":"wifi"}]. Stable targets: "id:" or "desc:" (shown as #id and (description) by look). Routines, shared by every agent: remember="name" saves the batch when every step went through, targets kept by stable names (id:, text, desc:; never [N] or coordinates); a typed text made only of {{x}} becomes a parameter. routine="name" (without steps) replays it, params={"x": "..."} (with remember: the values used while recording); remember="name" with steps=[] forgets it. Guardrails apply on replay as on any gesture (confirm and accord are never saved).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| then | No | auto | |
| steps | No | ||
| params | No | ||
| routine | No | ||
| remember | No |