looktap
v0.7.1Let your AI agent see, use and control the apps on your phone: screen as text, tap by label.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ls
List what is on screen: @ref, type, x,y, width×height, label, = value.
| Parameter | Type | Description |
|---|---|---|
all | boolean | Include unlabelled elements |
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
tap
Tap an element by label or @ref. Returns the settled screen.
| Parameter | Type | Description |
|---|---|---|
target * | string | A label (exact, else unique prefix/substring) or an @ref from the last listing |
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
exact | boolean | |
ls | boolean | Return the settled screen afterwards (default true) |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
tap_xy
Tap a point (iOS points / Android dp, the units ls prints).
| Parameter | Type | Description |
|---|---|---|
x * | number | |
y * | number | |
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
ls | boolean | Return the settled screen afterwards (default true) |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
long_press
Hold a touch on an element (or a point) for ms (default 800).
| Parameter | Type | Description |
|---|---|---|
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
ls | boolean | Return the settled screen afterwards (default true) |
ms | number | |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
target | string | A label (exact, else unique prefix/substring) or an @ref from the last listing |
x | number | |
y | number |
fill
Focus a text field (by label or @ref), clear it, type text, and check the field holds it (a password field: its length). Retypes slowly if not, and fails if it still does not.
| Parameter | Type | Description |
|---|---|---|
target * | string | A label (exact, else unique prefix/substring) or an @ref from the last listing |
text * | string | |
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
ls | boolean | Return the settled screen afterwards (default true) |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
paste
Put text on the device's clipboard, check it is there, and paste it into the focused field.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
ls | boolean | Return the settled screen afterwards (default true) |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
code
Enter a one-time code into its row of digit boxes: tap the first, type each digit, check every box (pastes the code if typing did not fill them).
| Parameter | Type | Description |
|---|---|---|
code * | string | |
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
ls | boolean | Return the settled screen afterwards (default true) |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
type
Type into the focused field.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
ls | boolean | Return the settled screen afterwards (default true) |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
key
Press keys: return, escape, delete, tab, space, selectall, paste, home (Android also back).
| Parameter | Type | Description |
|---|---|---|
keys * | array | |
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
ls | boolean | Return the settled screen afterwards (default true) |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
hide_keyboard
Dismiss the on-screen keyboard and take focus from the field (blur validation runs). Fails if it is still up.
| Parameter | Type | Description |
|---|---|---|
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
ls | boolean | Return the settled screen afterwards (default true) |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
swipe
Drag from one point to another (scroll: finger moves up to go down).
| Parameter | Type | Description |
|---|---|---|
x1 * | number | |
x2 * | number | |
y1 * | number | |
y2 * | number | |
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
ls | boolean | Return the settled screen afterwards (default true) |
ms | number | |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
scroll_to
Swipe until the element is fully on screen (swipes above the keyboard when it is up).
| Parameter | Type | Description |
|---|---|---|
target * | string | |
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
up | boolean | Scroll back up |
back
Android system Back; iOS navigation-bar back button.
| Parameter | Type | Description |
|---|---|---|
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
ls | boolean | Return the settled screen afterwards (default true) |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
home
The Home button: go to the home screen, leaving the app running.
| Parameter | Type | Description |
|---|---|---|
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
ls | boolean | Return the settled screen afterwards (default true) |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
wait
Wait until a label (or @ref) is on screen — or, with gone, until it is not. With settle and no target: until the screen, its picture included, holds still for a second, for web pages with no labels to wait for (a sign-in page loading).
| Parameter | Type | Description |
|---|---|---|
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
gone | boolean | |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
seconds | number | Timeout (default 10) |
settle | boolean | |
target | string |
screenshot
A PNG of the screen, returned as an image (scale 0.5 by default: fewer tokens).
| Parameter | Type | Description |
|---|---|---|
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
scale | number | 0–1 |
logs
The app's log since the last logs call (first call: the last minute).
| Parameter | Type | Description |
|---|---|---|
app | string | |
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
errors | boolean | |
grep | string | |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
since | string | e.g. 5m |
notifications
The notifications the device holds (Notification Center / the shade), newest first: app, title, body. With until: wait until one has that text (one already there counts), e.g. to check a push arrived. A real iPhone pulls Notification Center down for a moment to read it.
| Parameter | Type | Description |
|---|---|---|
all | boolean | Android: ongoing ones too (charging, foreground services) |
app | string | Only this app (id; a real iPhone also matches the shown name) |
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
json | boolean | Every field (iOS simulator: the push payload too) |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
seconds | number | How long until waits (default 30) |
until | string | Wait for a notification whose title or body has this text |
crashes
Crash reports, ANRs and low-memory kills since the last crashes call.
| Parameter | Type | Description |
|---|---|---|
app | string | |
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
since | string |
perf
The app's CPU (100% = one core), memory and threads; or, with frames, frames drawn since the last frames call: janky share, p50–p99 frame time, fps (iOS counts what the screen shows; its first frames call only starts counting, so call it before the action too). Simulator numbers are the Mac's: compare runs, not phones. A real iPhone reads through Instruments, 10–25 s a reading.
| Parameter | Type | Description |
|---|---|---|
app | string | App id (default: the configured app, else the app in front) |
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
for | number | Seconds to sample, a reading each second, then avg/max |
frames | boolean | Frame and jank stats instead of CPU and memory |
json | boolean | Structured output |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |
looktap
Any other looktap command line, or several separated by ";" — e.g. "launch com.example.app --ls", "stop com.example.app", "open myapp://home", "expect Welcome", "zoom in", "appearance dark", "rotate landscape", "fold open", "record start demo" … "record stop", "permission grant location com.example.app", "perf com.example.app --for 10s", "launch com.example.app --time", "apps com.example" (is it installed?), "app com.example.app --paths" (its data folder), "devices --all", "boot Pixel_9a" (also waits for one still starting), "shutdown Pixel_9a", "dismiss logbox" (React Native's toast), "sh…
| Parameter | Type | Description |
|---|---|---|
command * | string | |
device | string | Simulator UDID or adb serial, when several are booted. Remembered for later calls |
platform | string | When both an iOS and an Android device are booted. Remembered for later calls |