
looktap
io.github.lakpriya1s/looktap
Let your AI agent see, use and control the apps on your phone: screen as text, tap by label.
Documentation
Let your AI agent see, use and control the apps on your phone
It reads the screen as text and taps by label, on iPhone and Android devices. Then what worked becomes a script or a
test your CI runs. No server to start and no dependencies.
Website · Quick start · Commands · For AI agents · Benchmark · Troubleshooting
looktap lets your AI agent see, use and control the apps on your phone: an iPhone or Android device, real or
simulated (and watches: Wear OS, and Apple Watch simulators). It reads the screen as text and taps by label. Each command does one thing and prints a few lines of plain
text:
Your agent sees and uses the phone. It's made for AI coding agents (Claude Code, Cursor, Codex, opencode, …) that need to see and use the app they're building, and it controls any app on the device, not only yours: system apps, apps you didn't build, and web pages, with nothing added to the app.
- Small output. A screen read is about 1 KB of text, where other agent tools return 4–125 KB. A screenshot is a file path, where most MCP servers put 40–270 KB of image into the context.
- One call per step. Add
--lsto an action and its result comes back in the same call. - Fast. Screen reads take about 0.1 s and taps 0.1–0.2 s on both platforms, and the first command comes back in under a second, with no session to set up. Against eight other agent tools on the same devices, it had the lowest agent time on both iPhone and Android (How it compares).
Then what worked becomes a script or a test your CI runs. Every command is a plain shell call with an exit code, so the steps that worked with the agent run on their own afterwards:
- Tests in CI. Save the steps as flow files:
expectchecks the screen, andlooktap testruns the flows and reports each one, with a JUnit report (Test flows in CI). On Android,looktap codegenwrites a flow while you use the phone (Record a flow). - Screenshot sweeps, on one device or several (A repeatable screenshot sweep, Same screen on several devices).
- Bug repros that collect their own logs and crash reports (Debug).
Contents
- What you get: everything looktap does today
- How it compares: the measured comparison with every other agent mobile tool
- Quick start: install, boot a device, first commands
- 🤖 Kickstart with your AI agent: one prompt and your agent takes it from there
- Requirements
- How it works
- Examples: tap by label, forms, waiting, scrolling, debugging, performance, bursts and video
- Tests and automation: flow tests in CI, recording a flow, screenshot sweeps, several devices
- For AI agents
- Commands · Platform support · Options & config
- Troubleshooting · FAQ · Roadmap
- Safety rules · Contributing · License
What you get
| What you get | |
|---|---|
| 👀 | Read the screen as text. ls lists what's visible, one row per element: @ref type x,y w×h label = value. It reads any app on the phone, yours or not: native screens, React Native screens and web content (Safari, in-app browsers, web views) |
| 👆 | Tap by label. Exact match first, then a prefix or substring that names exactly one label. An ambiguous match is an error, never a guess. Also by @ref from the last ls, or by x y coordinates |
| ⌨️ | Type and fill. type into the focused field, fill to clear a field, type and check it holds the text (a password field: its length), paste text through a clipboard it checks first, code 540390 into a row of one-time-code boxes, key return|escape|delete|tab|selectall|paste|… (the same names on both platforms), and hidekb, which never reports success while the keyboard is still up |
| 🧭 | Navigate and gesture. swipe, scrollto <label>, back, home (the Home button, the app keeps running), open <deep link>, launch <app>, stop <app>, longpress, and two-finger zoom in|out |
| ⏱️ | Wait instead of sleep. wait "Welcome", wait "Loading" --gone. Actions already wait up to 3 s for their target |
| 🧪 | Tests in CI. expect "Welcome", expect "Email" = sam@example.com, expect "Error" --gone check the screen. test flows/ runs flow files as tests, one line per flow, and a failure leaves its screen, screenshot, error logs and crashes behind. --junit for CI reports. On Android, codegen records a flow while you use the phone |
| 📸 | Screenshots. shot saves a PNG and prints its path, with --scale 0.5 for fewer image tokens. On Android emulators it also captures FLAG_SECURE screens |
| 🎞️ | Burst capture and video. burst saves a frame each time the screen changes, to catch spinners, toasts and transitions. record start … record stop saves an MP4 of everything in between |
| 🖥️ | Every device live in your browser. looktap live opens one web page with every running simulator, emulator and connected phone on it, each in a phone's frame, as it happens: watch an agent work on several devices at once, with every looktap command listed as it runs. Switch on Control and the page drives them too: click to tap, drag to swipe, type, rotate, switch dark mode, open links, start and shut down simulators and emulators, and troubleshoot one that's slow or stuck. Screenshot, record, and each device's battery, heat, storage and app CPU and memory |
| 👆 | A pointer where it taps. touches on draws a pointer on the device wherever a touch lands, with a trail behind a swipe and a glow inside the screen's edge while an agent drives, so a recording (or someone watching) sees what was tapped. shot --mark "Sign in" draws the same pointer on a screenshot, and looktap live draws it over a real iPhone's picture. Nothing is installed for it |
| ⏸️ | The person holding the phone stays in charge. The looktap runner app shows which computer is driving the phone, what it just did, and an Allow control switch that pauses looktap there: reading the screen goes on, every action is refused until it's back on. A real iPhone has it from its first command; on Android it's opt-in (looktap runner install) |
| 🪵 | Logs. logs shows the app's log since your last look. --errors and --grep narrow it, and on iOS Apple-framework chatter is filtered out |
| ⏱️ | Performance. perf reads the app's CPU, memory and threads, once or each second with --for 10s; perf --frames adds frames, jank and frame-time percentiles (on iOS, from the screen itself). launch --time times a cold start until the first screen settles |
| 💥 | Crashes. crashes reads iOS crash reports (exception, reason, top frames) and Android crashes, ANRs and low-memory kills, so "the app vanished" always comes with a reason |
| | Biometrics. bio match|nomatch simulates Face ID or a fingerprint |
| 🌍 | Simulated conditions. location <lat> <lon>, appearance dark, textsize xxl (Dynamic Type / font scale), statusbar clean (9:41 for screenshots), rotate landscape (ls, taps and screenshots follow the turned screen), fold open (the iPhone Duo simulator), Android network offline, iOS push notifications, and notifications to read back what arrived (every platform, real phones too) |
| 🧹 | App state for repros. install a build, apps to see what is installed (and which version), reset an app to a fresh install, uninstall, and permission grant|revoke|reset camera|location|photos|…, with the same names on both platforms |
| 📱 | Devices on demand. boot "iPhone 16 Pro" or boot Pixel_9a starts a simulator or emulator by name and waits until it's ready, with a window or --headless; shutdown stops it. devices tells real phones from simulators and emulators (model, OS, USB or Wi-Fi), and says what to do for a phone that isn't ready yet. wifi takes an Android phone off its cable, pair connects one that never had one, and connect reaches a Wear OS watch. Apple Watch simulators boot and run the same commands |
| 🤖 | Built for agents. --ls on any action, run to batch steps, --json, capabilities to check what the device in use can and can't do, and a Claude Code skill you install with one command |
| 🧩 | Nothing to install on simulators, emulators or Android phones, no server to run, no npm dependencies. The helpers start on first use. A real iPhone gets a small test runner, built for you |
| ⚠️ | Honest failures. A tap that's covered by a toast prints a warning, a stale @ref is an error rather than a wrong tap, a system prompt over the app is reported as one, a locked device is reported as locked (never typed into), and an app that dies is named the moment looktap notices |
How it compares
Every agent mobile tool we could run on one Mac was given the same 12 steps in the Settings app, 10 runs each, on an iPhone simulator and an Android emulator: looktap (CLI and MCP), mobile-mcp, Maestro MCP, Appium MCP, raw Appium, ios-simulator-mcp, MobileBuildMCP, raw idb and raw adb. A neutral checker decided whether each step worked. These are the totals over the steps every tool can do:
| looktap CLI | looktap MCP | Next best for an agent | Others | |
|---|---|---|---|---|
| Agent time (iOS · Android)¹ | 21 s · 28 s | 25 s · 37 s | 30 s Maestro MCP · 49 s Appium MCP | 36–63 s |
| Tool calls (iOS · Android) | 8 · 12 | 8 · 12 | 9 · 11 Maestro MCP | 10–27 |
| Text returned (iOS · Android) | 747 B · 1.2 KB | 3.2 KB · 7.9 KB | 17 KB · 14 KB Maestro MCP | 17–154 KB |
| Steps passed | 100% of what it can do | 100% | 87–100% | |
| Setup before the first command | under 1 s | under 1 s | 0.2–29 s |
¹ The device's reaction time plus 2 s per tool call for the model's round trip.
On real phones (iPhone 14 Pro and Samsung Galaxy A06 over USB, looktap 0.4.0, all 12 steps), the looktap CLI again had the lowest agent time (87 s and 38 s, against 104–114 s and 45–89 s) and returned the least text (1.7 KB and 1.0 KB, against 8.9–191 KB). Four of the iOS tools can't drive a real iPhone at all: ios-simulator-mcp, MobileBuildMCP, idb and Maestro.
Where looktap loses:
- On raw device time, others are faster in total: ios-simulator-mcp on the iOS simulator (4.5 s against 5.2 s, with 20 calls to looktap's 8), mobile-mcp and raw Appium on the real iPhone (60 s and 62 s against 63 s), and raw Appium on the Samsung (11 s against 12 s).
- The looktap MCP waits for the screen to settle after every action, which makes it slower per action than the CLI. On the real iPhone that takes 6–11 s a tap and puts it last for agent time.
- In the simulator and emulator runs, looktap 0.2.1 couldn't stop an app or press Home on iOS; 0.3.0 added
stopandhome.
Method, every device's tables and what else they show are in BENCHMARK.md.
Where Appium is still the better choice: it plugs into existing WebDriver test suites and CI grids, and supports many more platforms. looktap's tests are flow files of plain commands: good for smoke tests and agent-written flows, not a replacement for a large suite in code.
Quick start
# 1. install (Node 18+; zero dependencies)
npm install -g @looktap/cli
# 2. check the toolchain
looktap doctor
# 3. boot a device: an iOS simulator or an Android emulator, by name
looktap devices --all # what's running, and what you can boot
looktap boot "iPhone 16 Pro" # or an AVD: looktap boot Pixel_9a
# 4. drive it
looktap launch com.apple.Preferences --ls # (Android: com.android.settings)
looktap tap "General" --ls
looktap shot general
Or try it without installing anything: npx @looktap/cli doctor (any command works the same way).
To teach Claude Code how to use looktap, install the plugin. In Claude Code:
/plugin install looktap --marketplace lakpriya1s/looktap
It adds the looktap skill. Then run /looktap:setup: it installs the CLI, checks your
toolchain and gets a device ready.
Any other coding agent (Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, Kiro, …): install the skill for every agent on your machine in one go (which agents):
looktap skill --install # or, without installing looktap: npx -y @looktap/cli skill --install
Other ways to install
The latest from GitHub, ahead of the npm release:
npm install -g github:lakpriya1s/looktap
From a checkout:
git clone https://github.com/lakpriya1s/looktap.git
cd looktap && npm install -g .
As a tarball you can hand to someone (it includes both prebuilt helpers):
npm pack # → looktap-cli-<version>.tgz
npm install -g looktap-cli-<version>.tgz # on their machine
Without installing: node bin/looktap.js --help.
Uninstall: npm uninstall -g @looktap/cli && rm -rf ~/.looktap.
🤖 Kickstart with your AI agent
Paste this into your AI coding agent (Claude Code, Cursor, Codex, opencode, …) and let it set things up and start using the app with you:
Install looktap (https://github.com/lakpriya1s/looktap) so you can drive
my app in the iOS simulator / Android emulator:
1. Run `npm install -g @looktap/cli`, then `looktap doctor`,
and fix anything it reports. If no device is up, boot one: `looktap devices --all` lists them, `looktap boot "<name>"` starts one.
2. Run `looktap skill --install` and read the skill it installs.
3. Find my app's bundle id / package name in this repo and write a
looktap.config.json with it at the repo root.
4. Launch the app with `looktap launch --ls` and tell me what screen it's on.
Rules: never type real credentials, OTPs or card numbers. When the app needs a
sign-in, stop and let me do it, then continue from there.
Requirements
| For | You need |
|---|---|
| Everything | Node 18+ (node -v) |
| iOS | A Mac with Xcode (command-line tools selected) and at least one simulator runtime. Apple Silicon or Intel. looktap boot starts a simulator |
| Android | Android SDK platform-tools (adb on your PATH), and an emulator (AVD) or a USB-debugging device. looktap boot starts an emulator (it needs the SDK's Emulator package) |
| A real iPhone or iPad | The iOS row, plus an Apple ID signed in to Xcode (a free one works) and the device paired with the Mac, with Developer Mode on. See Using a real iPhone |
Tested with Xcode 26 and 27.1 / iOS 26, 27 and 27.1 (iPhone 14, iPhone 18 Pro and the foldable iPhone Duo simulators), a real iPhone 14 Pro on iOS 26, a real iPhone X on iOS 16.7 (Xcode 27.1, through lockdown), and Android 16 / API 36 (Pixel 9a emulator).
How it works
looktap ships its own small helper for each platform. Nothing is installed on simulators, emulators or Android
devices. A real iPhone or iPad is the exception: it gets a small test runner (Using a real iPhone).
The one Android exception is opt-in: looktap wifi --always installs a small app that keeps Wireless debugging on
(built and signed on GitHub Actions, downloaded from the release; wifi --off removes it).
| iOS simulator | Android emulator / device | |
|---|---|---|
| Read the screen | looktap-sim, a macOS helper that reads the simulator's accessibility tree through Apple's simulator frameworks (CoreSimulator, AccessibilityPlatformTranslation). Web content is found by probing the screen | looktap-server.jar, a 10 KB helper pushed to /data/local/tmp and run with app_process. It keeps one UiAutomation connection open |
| Tap, type, swipe, keys | The same helper, as touch and keyboard events through SimulatorKit | The same helper, as input events through UiAutomation |
Clipboard (paste) | simctl pbcopy, checked with simctl pbpaste; when Xcode 27's clipboard sync (dtpasteboardd) wins over it, the Mac's clipboard, which the sync carries in, then put back | The helper sets the clipboard as the shell (IClipboard), then the field's paste action or the paste key |
Screenshots, burst | The simulator display's framebuffer, read in-process | Emulators: the emulator's gRPC API, which also gets past FLAG_SECURE. Devices: the helper |
Video (record) | simctl io recordVideo | screenrecord on the device |
Folding (fold) | What Device Hub's fold buttons send: a vendor-defined HID report with the hinge angle, through dtuhidd. devicectl says which screen is lit, and the helper reads, touches and captures that one | — |
Orientation (rotate) | The orientation event Simulator.app sends to the guest (the iPhone Duo: Device Hub's orientation report). Coordinates and frames are converted, so everything looktap prints and takes is as the user sees the screen | settings (user rotation, auto-rotate off). The helper reports the turned display size |
| Logs, crashes | log show inside the simulator, and its .ips crash reports | logcat (by app uid), the crash buffer, and dumpsys activity exit-info |
Home button, stop | The helper sends the hardware Home button; simctl terminate | KEYCODE_HOME; am force-stop |
| Deep links, launch, biometrics | xcrun simctl | adb and the emulator console |
Each helper starts on first use, keeps running in the background, and is replaced automatically when looktap is
upgraded. looktap setup starts it ahead of time, and looktap teardown stops it. The CLI talks to it over a
local socket, using JSON lines.
iOS: private frameworks and Xcode versions
The iOS helper uses Apple's private simulator frameworks, the same ones idb uses. They can change between Xcode
releases. looktap doctor checks they're present and shows which input path applies:
- Xcode 26 and earlier (CoreSimulator below 1155.4): touches, keys and the Home button go through SimulatorKit's HID client ("indigo"). Tested.
- Xcode 27 (CoreSimulator 1155.4 and later): touches, keys and the Home button go as XPC messages to the simulator's
dtuhiddservice ("dtuhid"), the same way idb does it. Tested on Xcode 27.1 with iOS 26 and iOS 27 simulators. Reading the screen and screenshots don't depend on it. Xcode 27.1 moved SimulatorKit toContents/SharedFrameworks, which looktap 0.7.1 and later finds; it also replaced the Simulator app with Device Hub (seeboot).
LOOKTAP_IOS_HID=indigo|dtuhid overrides the choice. It applies when the helper starts, so run
looktap teardown first.
Using a real iPhone
A simulator can be driven from the Mac with nothing installed in it; a real iPhone or iPad can't. So the first
command aimed at one builds a small XCUITest runner (native/ios-device), signs it with your Apple ID, and installs
it. It reads the screen and taps, types and swipes through XCUITest, and looktap reaches it over USB or Wi-Fi (see
how it connects below). Every looktap user signs the runner with their own Apple ID. A free one is enough; the paid
Developer Program isn't needed.
Once per Mac and device:
- In Xcode → Settings → Accounts, sign in with your Apple ID. That gives you a "Personal Team".
- Pair the device with the Mac (connect it with a cable once and tap Trust; Wi-Fi works after that), and turn on
Developer Mode on it: Settings → Privacy & Security → Developer Mode. (An iPhone on iOS 16 or older without a
passcode needs no hand here:
looktap setup -d <UDID>turns it on, see Older iPhones.) - Unlock the device and run any command against it, for example
looktap -d <hardware UDID> ls(looktap deviceslists the UDID, and says what to do if the device isn't ready yet: Trust, Developer Mode). The first run builds the runner, which takes about a minute. - With a free Apple ID, the device asks you to trust the developer the first time: Settings → General → VPN & Device Management → your Apple ID → Trust. Then run the command again.
If Xcode is signed in to more than one team, choose the one to sign with:
LOOKTAP_TEAM=<team id>, or {"ios": {"team": "<team id>"}} in looktap.config.json. The error message
lists your teams and their ids.
Picking the device: -d <hardware UDID> always picks it. Without -d, a paired device is used only when no
simulator or emulator is running, so nothing changes for simulator workflows.
Signing expiry: a runner signed with a free Apple ID stops launching after 7 days, and one signed with a paid team after a year. looktap reads the expiry date and builds and signs the runner again before it lapses. If iOS refuses to launch it anyway (for example, after a certificate was revoked), looktap rebuilds it once and retries. Free Apple IDs have Apple's own limits too: about 3 devices and 10 app ids per 7 days, and at most 3 apps signed by the free account installed on one device at a time. The runner counts as one, so if the device is full, looktap names the apps it found and you delete one.
What works on a device: everything except location, network, push, statusbar, textsize, bio,
record, permission, reset and crashes, which say so (on iOS 16 and older,
location, route and crashes work); zoom works around the screen's centre only. logs
reads the phone's live log (lockdown's syslog relay, as Console.app does), collected in the background from the first
logs or launch on, since the phone keeps no history looktap can read. Only NSLog and os_log/Logger reach a
device's log: Swift's print() never does, and logs says so when a debug build's own code shows nothing. prefs
reads a development build's UserDefaults over house_arrest.
perf reads CPU, memory and threads through Instruments (xcrun xctrace, part of Xcode), 10–25 s a reading, and
perf --frames reads the screen over the USB cable, so it needs the phone plugged in rather than on Wi-Fi.
Platform support has the reasons, and looktap capabilities prints them. A command takes about 1–1.5 s, slower than on a simulator, because XCUITest takes longer to read the screen.
The device must be unlocked while the runner starts. It keeps running until looktap teardown, or until the
device is restarted. While the device is locked, commands that need the screen stop with "the device is locked"
(stop still works), and looktap devices shows locked up front. --wait-unlock 60 (or "waitUnlock": 60 in the
config, LOOKTAP_WAIT_UNLOCK=60) waits up to that many seconds for someone to unlock it instead, then runs the
command; useful in a long flow, where the phone locks itself after a while. A runner can lose its permission to drive the screen while it keeps running (seen after the
device sat idle); looktap then starts a fresh one, once, and carries on.
The runner app on the phone
The runner shows up on the home screen as looktap runner. Open it and it says
what it is and how it's doing: which Mac is connected and how (USB or Wi-Fi), the last thing it did, how many
actions and screen reads this session, when its build stops working and which team signed it, and its recent actions
(typed text appears only as a character count). The Allow control switch stops looktap acting on the phone:
while it's off, looktap can still read the screen and take screenshots, but taps, typing, swipes, launches and
links are refused with "paused on the iPhone", until someone turns it back on on the phone. Stop the runner
ends it; the next looktap command starts it again. Its Show touches switch is greyed out: iOS lets no app draw
over another (see touches). Its Troubleshoot card shows the Link (how the Mac
reached it: USB, Wi-Fi or the CoreDevice tunnel, the last command's round trip, marked slow over 3 s, and the routes
tried first that didn't answer), Keep the screen on (no auto-lock while the runner is in front: iOS lets no app
keep the screen on behind another, so for a test of another app, Open Auto-Lock settings and set it to Never),
Restart the runner (a fresh test session; the next command starts it), Open Developer settings (Developer
Mode, Enable UI Automation), and, since only one UI test session can drive an iPhone, the looktap who and
release --all commands for this phone when another tool holds it.
On an Android phone looktap needs no app, but the same screen is there if you want it:
looktap runner install puts looktap runner (com.looktap.app, Android 10+) on the phone and opens it. Its
Allow control switch pauses looktap the same way ("paused on the phone"), and Show touches turns the
pointer on and off for every app, in step with looktap touches on|off (it starts on).
Its Troubleshoot card is for a phone looktap is slow to reach, or can't reach: the Link (USB or Wi-Fi, and the
round trip looktap measured on its last command, marked slow over 3 s, and why when looktap moved it to Wi-Fi), a
Wireless debugging switch (Android 11+: on, looktap drives the phone over Wi-Fi while USB is slow or stalled,
with the cable still in), Keep it on (back on after a restart and whenever the phone joins Wi-Fi: the same as
looktap wifi --always, which uses this app), Keep the screen on (so the phone doesn't lock mid-command:
plugged in, USB counts, the screen never turns off, as Developer options' Stay awake; unplugged, it turns off after
30 minutes, and the phone's own timeout comes back when it's switched off), Restart looktap's helper (a fresh connection to the screen) and Open Developer
options (to turn USB debugging off and on, which works even when the helper isn't running).
It talks only to looktap's helper on the same phone, over the phone's own loopback, and the helper answers no other
app. looktap runner remove takes it off.
How looktap reaches the phone
Each command tries, in order: USB (usbmuxd, when the cable is in), the CoreDevice tunnel (how Xcode itself
reaches a phone on Wi-Fi, and what starts the runner), then usbmuxd's own Wi-Fi route. A network can block the
last while the tunnel works. Plugging in a cable mid-session moves to USB at the next command, with no teardown.
When the runner is up on the phone but no route reaches it, looktap says so within about 20 s, with what each route
answered, instead of waiting minutes: usually the network isolates its clients, or a VPN or firewall sits between
the Mac and the phone. Plug in a cable and run the command again; the runner keeps running, so nothing restarts.
looktap doctor -d <UDID> checks each step on the way: pairing, Developer Mode, the tunnel, usbmuxd, the lock
screen, which routes the runner answers on, and the signing team.
Older iPhones (iOS 16 and earlier)
Xcode 27 no longer supports iOS 16 devices: it lists one without a UDID and won't build for it, install on it or start a test on it, and that's the way looktap reaches newer phones. So for an iPhone older than iOS 17, looktap does Xcode's part itself, through the services the phone's lockdown daemon offers over usbmuxd (USB, or Wi-Fi once paired):
- Developer Mode: on a phone without a passcode,
looktap setup -d <UDID>turns it on by itself: the phone restarts, and looktap answers the Turn On prompt when it's back (about a minute). With a passcode only someone at the phone can: the switch only appears in Settings once something has prepared the phone, so the first command (orsetup) makes it appear and says what to do; then turn it on, let the phone restart and tap Turn On. - The developer disk image, which holds XCTest and the developer services: mounted by the first command. Xcode 27
ships none for iOS 16, so looktap downloads the one Xcode used to ship, once, from
doronz88/DeveloperDiskImage into
~/.looktap/ddi. - The runner is built for any iPhone, made to start on the older iOS (Xcode 27's test host asks for iOS 17:
looktap lowers that and marks the XCTest symbols iOS 16 lacks as optional, then signs it again), installed through
installation_proxy, and started overtestmanagerdthe wayxcodebuild testdoes it. - Registering the phone: Xcode adds a phone to your team only when it supports it, so add this one by hand at
developer.apple.com → Certificates, IDs & Profiles → Devices (a paid team). looktap says so when the runner's
profile leaves the phone out, and moves Xcode's cached profiles made before that aside (to
~/.looktap/old-profiles) so the next build fetches one that includes it. - "Enable UI Automation": the first test session asks for the phone's passcode once, and gives up after a minute. Enter it when asked, or turn on Settings → Developer → Enable UI Automation beforehand.
After that it's like any other iPhone: looktap devices lists it as iOS 16.7 (through lockdown), and install,
apps, uninstall, launch, stop and the screen commands work. location <lat> <lon> works too (the developer
image's simulated location, as in Xcode), and crashes reads the phone's crash reports. perf doesn't (Instruments
needs Xcode's support), but perf --frames does. looktap doctor -d <UDID> checks Developer Mode and the image.
Wear OS watches
A Wear OS watch is an Android device to looktap: ls, tap, shot, record, install and the rest work as on a
phone, on its small round screen (a Galaxy Watch 4 is 198×198 dp). A watch has no USB port for adb, so it connects
over Wi-Fi:
- On the watch: Settings → About watch → Software information → tap Software version five times. Then in Developer options turn on ADB debugging and Debug over Wi-Fi (or Wireless debugging), with the watch on the same Wi-Fi as this computer.
- If the watch shows only an address (
192.168.1.96:5555):looktap connect 192.168.1.96:5555. If it offers Pair new device with a six-digit code:looktap pair <code> <host:port>. - Accept Allow debugging? on the watch (tick "Always allow from this computer").
looktap devices then lists it as Wear OS (Android 11), and -d 192.168.1.96:5555 picks it. A Wear OS emulator
(Android Studio's Device Manager → Wear OS) works the same way and lists as Wear OS (Android 14): looktap boot <AVD name>.
A watch's home is its watch face, its crown or button is key home, and an idle watch dims to its always-on face,
with nothing to read: commands that act on the screen wake it first. looktap capabilities lists what a watch does
differently (no rotation or fingerprint, for one).
A watch turns its Wi-Fi down while its screen is off, and a command sent then waits until it times out: keep it on
its charger with Developer options → Stay awake while charging on, or lengthen its screen timeout
(adb -s <id> shell settings put system screen_off_timeout 600000). Transfers can be slow for the first few
minutes; leaving Bluetooth on is fine (the watch's apps need it to reach the phone). Debugging over Wi-Fi goes off
when the watch restarts: turn it on and connect again.
Apple Watch simulators
An Apple Watch simulator is driven like an iPhone simulator, by the same helper: ls, tap, swipe, scrollto,
shot, record, launch, logs, location, push, perf and the rest. looktap boot "Apple Watch Series 12 (46mm)" starts one, and devices --all lists them (watchOS 27.0). An iPhone simulator and a watch can run side by
side: -d picks one.
- Home is the Digital Crown: it goes to the watch face.
- Back taps the screen's back button, else swipes in from the left edge.
- Typing: the watch takes no hardware keyboard, so
typetaps the keys of its own keyboard: letters and spaces, capitalized and corrected by the keyboard as for a person.key delete,key spaceandkey return(its Done button) work too. Tap the text field first to open the keyboard. - Not on a watch: paste, appearance (watchOS is always dark), text size, the status bar, Face ID and rotation;
the simulator refuses them.
notificationscan't read the watch's list: swipe down on the watch face andls. - A few apps (Calculator) draw controls the accessibility tree doesn't list; looktap hit-tests the screen for them,
and
shotwithtapxycovers the rest.
A real Apple Watch can't be driven: it has no cable, and developer tools reach it only through its paired iPhone.
Android: the fallback path
If the helper can't start (for example, another tool holds UiAutomation), looktap falls back to plain adb +
uiautomator dump. That works everywhere but takes about 2.5 s per screen read. LOOKTAP_ANDROID_HELPER=0
forces that path.
Examples
Tests in CI, recording a flow, screenshot sweeps and running on several devices are in Tests and automation.
Look, then act
looktap ls
@1 Button 16, 285 358x54 General
@2 Button 16, 339 358x54 Accessibility
@3 TextField 33, 773 324x38 Search = Search
Each row shows a ref (@1), the element type, its x,y position and width×height (iOS points /
Android dp, the units tapxy and swipe take), its label, and = value for fields that hold text and for switches and checkboxes (1 on, 0 off). Unlabelled
buttons are listed too, as (no label), so you can tap them by ref. The on-screen keyboard is a single row.
Tap by label, not by coordinates
looktap tap "Open menu" # exact label (or identifier on iOS)
# tapped "Open menu" at 30,62
looktap tap "Messages" # no exact match → the one label starting with it
# tapped "Messages, 2 unread" at 342,62
looktap tap "Wi" # matches two different labels → refuses
# looktap: "Wi" is ambiguous — matches 2 labels: "Wi-Fi", "Wi-Fi hotspot"
looktap tap --exact "Messages" # exact only
looktap tap @7 # row @7 of the last ls
looktap tapxy 205 874 # when ls doesn't list it at all
- A ref works only while its element is still where
lssaw it. If the screen changed,tap @7fails ("no longer on screen — run: looktap ls") rather than tapping something else. - If another element covers the tap point (a toast, a dev-warning banner, a floating bar),
tapprints a warning, because the tap probably landed on the cover instead.
Long press and pinch-zoom
looktap longpress "Photo" # context menus, drag handles, "edit" modes (default 800 ms)
looktap longpress @4 1500 # by ref, held 1.5 s
looktap longpress 120 470 # a point, e.g. to drop a pin on a map
looktap zoom in # two fingers spreading at the screen centre (maps, photos, PDFs)
looktap zoom out 200 400 --scale 4 # pinch around a point; --scale is how far the fingers travel
zoom is a real two-finger gesture on both platforms. On Android it needs looktap's helper, because
adb input has no multi-touch.
Fill a form and capture its validation errors
looktap fill "Email" not-an-email
looktap fill "Name" "" # empty: just clears the field
looktap hidekb
looktap shot profile__validation
fill finds the field by its label (on iOS also its identifier), or else the first field at or below a matching
label. It clears the field and types, then reads the field back. Keys can get lost (a field that was still clearing
swallows the first letters; a web field drops keys while WebKit autocorrects), so on a miss it empties the field and
types again key by key, then, on the iOS simulator, pastes the text, and fails rather than report a value the field
doesn't hold. A field that formats its input (spaces, a currency sign, a capital) passes. A password field shows
dots, so its length is what's checked. On Android it also presses Enter, because React Native fields only show
validation on blur.
A one-time code split across boxes goes in with code:
looktap code 540390
It finds the row of boxes, taps only the first and types the digits one at a time, pausing while the boxes move focus along (tapping every box too puts digits a box off). Then it reads every box. If they don't hold the code, it taps each box before its digit, then pastes the code into the first; it fails listing what each box holds if none of that works.
On iOS, hidekb tries, in order:
- the keyboard's Done/Return key;
- the ✓ on a web form's Previous/Next bar;
- a tap on plain text above the keyboard.
On Android it takes focus from the field, as a tap outside it would (so a form that validates on blur shows its errors), and presses Back only if the keyboard is still up. It checks after each. If the keyboard is still up, it exits 2 rather than reporting success.
Wait instead of sleeping, and scroll
looktap wait "Welcome" # until it's on screen (default up to 10 s; --wait 30)
looktap wait "Loading" --gone # until it's gone
looktap wait --settle # a web page with no labels: until the screen, picture too, holds still
looktap scrollto "Privacy & Security" # swipe until fully on screen; fails at the end of the list
looktap scrollto "General" --up
looktap swipe 200 700 200 250 # scroll down (finger moves up); optional 5th arg: ms
looktap back # Android: system Back · iOS: the navigation bar's back button
looktap home # the Home button: home screen, the app keeps running
Debug: logs, crashes, "where did my app go?"
looktap tap "Pay" # something goes wrong…
looktap logs --errors # the app's errors since the last `logs`
# 15:41:06.700 E [com.example:api] POST /payments failed: 422 amount_too_small
looktap logs --grep payment # everything it logged that matches
looktap app --app com.example # is it still running?
# front: com.android.launcher3 pid 1205
# com.example: not running — if it was, check: looktap crashes
looktap crashes
# com.example (pid 14001) exited at 14:56:06.724 while in the background: LOW_MEMORY — killed by the system to free memory, not a crash
When the app dies, looktap says so. After an action, and at the next ls, looktap checks whether the
app that was in front still has its process. If not, it prints:
looktap: warning: com.example is no longer running — it crashed or was killed. See: looktap crashes com.example
- It also catches an Android app that crashed and was restarted at once, because the check is by process id.
- Switching to another app, going home, or uninstalling doesn't trigger it.
- On iOS the crash report is written up to a minute after the crash. Until then,
crashesalready shows the signal (e.g.SIGTRAP) and says the full report is coming.
Each logs call starts where the previous one ended, so a loop of act → logs only ever shows what's new.
--since 5m sets a fixed window instead.
What's in the log:
- iOS: what the app's own code logged, plus errors and faults from anything in its process. The simulator's
own noise (low-level networking, the keyboard) is hidden.
--allshows everything, Apple frameworks included. A read takes about 1–2 s. - Real iPhone: the phone's live log, read through lockdown's syslog relay over USB or Wi-Fi. The phone keeps no
history looktap can read, so the first
logs(orlaunch) starts collecting it in the background, until 30 minutes after the last one: runlogsorlaunchbefore reproducing the problem. Apple's libraries' notices are hidden unless--all; their errors are kept. - Android: everything logcat has for the app's uid, so restarts are covered. A read takes about 0.1 s.
What crashes reports:
- iOS: each crash report as exception, reason (such as an uncaught
NSException), the crashed thread's top frames, and the path to the full.ipsreport. - Android: Java crashes, native tombstones, ANRs, and exits that leave no crash report, low-memory kills above all.
React Native: in development builds, JS console.* output and uncaught JS errors are in logs on both
platforms:
- iOS: as
[com.facebook.react.log:javascript]lines. - Android: as
ReactNativeJSlines.
A red box is also on screen, so ls reads its message and call stack.
Swift: print() writes to stdout, not to the log. Use os.Logger or NSLog for messages logs should see.
Performance: CPU, memory, frames, launch time
looktap launch com.example --time # a cold start, timed
# launched com.example: in front after 0.44 s, first screen settled by 0.85 s · Android TotalTime 300 ms
looktap perf # the app in front: one reading
# com.example pid 4127
# cpu 14% (over 0.5 s; 100% is one core)
# memory pss 78.4 MB · rss 171.2 MB · java heap 12.1 MB · native heap 18.6 MB
# threads 21
looktap perf --for 20s # a reading each second while you (or a flow) use the app, then avg/max
looktap perf --frames # frames since the last --frames, janky %, p50–p99 frame time (iOS simulator:
# the first call starts counting)
looktap swipe 200 700 200 200; looktap perf --frames # how smooth was that scroll?
- Memory: on the iOS simulator, the footprint Xcode's memory gauge shows, and its peak. On Android, PSS (the app's share of RAM) plus RSS and the Java and native heaps.
- CPU is a share of one core over the reading, like
top: a busy app on two cores reads 200%. - Simulator numbers come from the Mac. An iOS simulator app runs on the Mac's CPU and memory, so compare builds and screens against each other, not against a phone. An emulator is closer, but still not a phone: for release numbers, use a real Android device.
launch --timestarts the clock at the start command (stopping the old copy comes first, outside it). Right after a launch an iOS screen read can take a second, so it says how much sooner the screen may have settled.- Real iPhone:
perfreads it through Instruments' Activity Monitor (xcrun xctrace, part of Xcode, so nothing to install). Starting Instruments takes a few seconds, so a reading takes 10–25 s and--forgives one about every 8 s. Its CPU matches Instruments' own figure to within about 10%. - Frames on the iOS simulator come from the screen itself. Instruments' Animation Hitches doesn't support the
simulator, so looktap counts how often the simulator's screen actually changes (its framebuffer), snapped to the
60 Hz display. A frame that skips a refresh (33 ms or more) is janky, and fps is measured while something moves.
It's the whole screen as you'd see it, not the app's own render time, which only Instruments has. A gap over
0.1 s counts as "nothing moving", so a pause between two actions doesn't count as jank, and is reported as a
pause. The first
perf --framesstarts counting; each one after reports what happened since the last. - Frames on a real iPhone come from its USB screen feed, the capture device QuickTime uses, compared frame by frame in the same way. It needs a USB cable (not Wi-Fi), an unlocked phone, and QuickTime not showing the phone. The feed runs at 60 Hz at most, so a 120 Hz screen is measured at half its rate, and during fast motion the phone sometimes skips a frame of the feed: those refreshes are reported as unknown, never as jank. (Instruments' Animation Hitches would measure the app's own frames, but its recordings hang while looktap's device runner is up.)
Catch a spinner, toast, or transition (burst)
Start the burst in the background, then trigger the action:
looktap burst ./frames 5 & # 5 s: a frame each time the screen changes
looktap swipe 200 250 200 700 # pull to refresh
wait
# 61 frames, 23 distinct, in ./frames
For a video of a whole flow, record it. The recording runs in the background between the two commands:
looktap record start checkout # → ./shots/checkout.mp4
looktap tap "Add to cart" --ls
looktap tap "Checkout" --ls
looktap record stop # prints the path and the length
- Android records with the device's
screenrecord: at most 3 minutes, andFLAG_SECUREscreens come out black. - iOS records with
simctl io recordVideo. A recording started in landscape is marked to play turned.
Show where it taps (touches)
A recording of an agent's run shows screens changing with no sign of what was touched. touches on draws a pointer
on the device wherever a touch lands: a dot while the finger is down, a fading trail behind a swipe, two dots for a
pinch, and a ring that lingers for a moment after a quick tap. While it's touching, the inside edge of the screen
glows in looktap's accent colour, and fades about a second after the last touch, so a glance tells you looktap is
driving.
looktap touches on # touches: on
looktap record start checkout
looktap tap "Add to cart" # the video shows the pointer on the button
looktap swipe 200 600 200 300
looktap record stop
looktap touches off
The pointer is on the device's own screen, so record, shot, burst and a person watching all see it. It stays
out of the app's way: it takes no touches and isn't in what ls reads. Nothing is installed.
| Device | What shows the pointer | How |
|---|---|---|
| Android emulator or phone | looktap's touches, in every app and on the home screen | looktap's helper draws on a display layer of its own (Android 10+). It's there only while a pointer is on screen |
| iOS simulator | Every app started after touches on, and the home screen and system alerts. A mouse click in the Simulator window shows too | A small library is loaded into the simulator's apps and draws inside each one. The home screen restarts once so it has it, which closes the apps; an app already running needs looktap launch again |
| Real iPhone or iPad | Only your own app, built with one extra file; and in looktap live, over the phone's picture for any app | iOS lets nothing draw over another app or load into one. Add native/ios-touches/LooktapTouches.m (looktap touches on prints its path) to your app's target for Debug builds; it draws nothing until looktap launch starts the app with touches on. The live page draws every agent touch itself, from where looktap noted it landed |
- Android draws looktap's own touches, not a person's finger: Developer options → Show taps does that.
touches offtakes effect at once. On a simulator, restarting it switches touches off too.- React Native and Expo apps take
LooktapTouches.mlike any Objective-C file: add it to the app target in Xcode. It needs no bridging header and no setup call. - On a screenshot, any device:
looktap shot step-2 --mark "Sign in"draws the pointer where a tap on that label would land (or--mark @3,--mark 180,420). This is the one way to show a touch in an app you don't build on a real iPhone.
Watch every device in your browser (live)
looktap live
# looktap live: http://127.0.0.1:4470/
Open that address. Every running simulator, emulator and connected phone is on one canvas, each in a
phone's frame, showing its screen as it changes. Run your agent or your flows in another terminal and watch all the
devices at once. The chips along the top take a device off the canvas or put it back, and the zoom fits them to the
window. A device that starts later appears by itself, and with touches on the
pointer and the glow show here too.
Control. Switch on Control in the page and it drives the devices:
| In the page | On the device |
|---|---|
| Click | Tap |
| Click and hold | Long press |
| Drag | The finger moves as the mouse does: swipe, scroll, drag a slider |
| Mouse wheel or trackpad scroll | Scrolls |
| Typing, Enter, Backspace, Tab, Escape, paste | Typed into the device you last touched |
| Home and Back under each phone | Home, and Android's Back |
With touches on, your clicks and drags show the pointer on the device but not the
glow: the glow is what says an agent is driving. A real iPhone can't draw either, so the page draws them over its
picture as an agent taps, presses or swipes it (looktap notes each touch in its activity log as it sends it).
While the page is touching a device it holds that device the way a looktap command does, so it and an agent don't both act at once: if an agent is mid-command, the page says who has the device and the touch is dropped, and the other way round. It lets go two seconds after your last action.
| Device | How it's shown | Notes |
|---|---|---|
| Android emulator or phone | The device's own video encoder, passed through and decoded by the browser | Smooth (the phone's frame rate). Needs a browser with WebCodecs: current Chrome, Edge or Safari. Screens an app marks secure are black, as in any recording |
| iOS simulator | A picture each time the screen changes, from looktap's helper | Up to 30 frames a second, at half resolution |
| Real iPhone or iPad on a USB cable | Video: the phone's screen feed, the one QuickTime uses | Up to 30 frames a second. The phone must be unlocked, and nothing else may be using the feed (QuickTime, perf --frames); while it isn't available the phone is shown as on Wi-Fi |
| Real iPhone or iPad on Wi-Fi | Screenshots through looktap's runner | About 5 a second: iOS gives the Mac no video of a phone's screen over the network. Plug it in for video |
On a real iPhone, a tap, long press or swipe is sent when you release the mouse, not as you drag, and there is no Back button (iOS has none). The first time, the runner is built and signed, as for any looktap command on one.
Under each device:
- Screenshot saves the screen at full size, as
looktap shottakes it (not the stream's smaller frames). Record saves what the page shows of that device as a video (WebM or MP4, as the browser records), until you click Stop. Both work while you only watch. - With Control on: Rotate, Dark and Light, Text size, Touches (the pointer) and Open link (a URL or your app's deep link). They are the looktap commands of the same names, so a device shows only those it can do: a real iPhone has no text size or touches switch. What the device answered shows under it. When an Android device turns (by these buttons, an agent or the app), its stream starts again at the new shape.
- Under the name: frames a second, the picture's size, the data rate, and how far the page is behind this computer (the time from a frame reaching the Mac to the page drawing it; the device's own delay isn't in it). Then the last looktap command on that device, from anywhere, and how long ago.
- Details opens how the device is doing, read every 10 s while open: battery (level, charging, temperature),
heat (Android's thermal status), free storage, and the app in front with its CPU and memory (Android and the
simulator; on a real iPhone those come from Instruments, so use
looktap perf). For a real iPhone, also when its runner's build stops working, and whether it was paused on the phone.
Start and shut down simulators and emulators from the page, with Control on: the Start picker in the top bar lists the iOS simulators and Android emulators that aren't running, and starts the one you pick headless (you watch it here); its tile appears once it's up. Shut down under a simulator or emulator stops it after a second click. If an agent is using it at that moment, the page says who and leaves it running. Real phones have neither.
Troubleshoot (top right, with Control on) is for a device that's slow or stuck. It works for a device with no
picture too, the stuck one above all: with Control on, its name along the top opens it. It shows the way to the
device (an Android phone's USB round trip and whether it's also on Wi-Fi; an iPhone's USB, Wi-Fi and CoreDevice
tunnel), switches for Wireless debugging, Keep it on and Keep the screen on on an Android phone (an iPhone's last
round trip to its runner instead), and everything holding the
device, as looktap who <device> lists it: what's in use, what's left over,
what stays. Then Restart looktap's helper (or an iPhone's runner session), Clear left-overs (release --all) and Stop everything (release --all --force, after a second click). Every fix shows in Activity. It
asks the device on a thread of its own, so the other pictures don't stall while a stuck link takes its time.
Activity (top right) lists every looktap command as it runs, from any terminal, agent, MCP client or the page
itself, with the device, how long it took, and why it failed when it did. looktap keeps them in
~/.looktap/activity.jsonl (at most 512 KB: it drops its older half past that). Typed text (type, paste,
fill, code) is written only as its length, never the text.
- It serves this computer only.
--host 0.0.0.0shares the page with your network, and prints the address to give people. Shared, it only watches; add--controlto let viewers drive. Anyone who can open the page sees the screens, what is typed on them included, so don't share it while signing in. --portpicks the port; without it, the first free one from 4470.- It needs a terminal of its own (it runs until Ctrl+C), so it isn't available over MCP.
- Nothing is saved unless you click Screenshot or Record. Frames go from the device to the page and are gone: none is written to disk, on the Mac or the device.
When a device is slow, stuck or held
looktap doctor -d R83Y30R6V6M # the way to it, layer by layer, and what to do
looktap who R83Y30R6V6M # everything holding it
looktap release R83Y30R6V6M --all # clear the left-overs, so the next command starts clean
A slow link isn't a stuck one. Each Android command probes the way to the phone first. A round trip over 3 s
gets a warning and longer timeouts for every adb call (three round trips each, up to 2 minutes): commands crawl,
but they work. Past the adb timeout plus 5 s (20 s; LOOKTAP_ADB_TIMEOUT raises it) the link counts as stalled,
and the error says what didn't answer, for how long, and that it's the link, not the adb server. A phone that's on
Wi-Fi as well (looktap wifi, the cable can stay in) is driven over Wi-Fi by itself while USB is slow or stalled,
still under its USB serial: hubs and worn cables are the usual cause, and Wi-Fi usually answers at once. doctor -d shows whether it does, and --fix only restarts adb when a restart can help.
looktap who <device> lists everything holding a device (an Android phone, an iPhone or a simulator), each
with its pid, how long it has run, what started it, and whether it's in use or left over:
| Android | iPhone and simulator | |
|---|---|---|
| looktap | commands holding it, live streaming it, mcp; its helper on the phone and the adb forward to it | commands holding it, live, mcp; the runner session (xcodebuild test-without-building, or testmanagerd on iOS 16 and older; older ones marked replaced), the simulator helper |
| Left behind | adb calls whose parent is gone, or that have run for 10 minutes without streaming | simctl and devicectl calls the same way |
| Other tools | scrcpy, Appium, Maestro, Android Studio; on the phone Appium's servers, Maestro, scrcpy's server, a uiautomator dump | WebDriverAgent, Maestro, iproxy, pymobiledevice3 or go-ios tunnels, idb, Instruments |
| The way to it | adb forwards and reverses, the USB serial and the Wi-Fi id of the same phone | USB (usbmuxd), Wi-Fi, the CoreDevice tunnel |
iOS gives the Mac no list of a phone's processes, so another tool's runner on an iPhone shows as its session on the
Mac. Holds whose process is gone are cleared as who runs.
looktap release <device> --all clears what nobody is using and says each thing it did: dead holds, the
calls left behind, and looktap's own way in when no looktap command is running (its helper and forwards on an
Android phone, an iPhone's runner sessions, the simulator helper). The next command starts them fresh. It keeps
the adb reverse rules (Metro), the looktap runner app, and the CoreDevice tunnel (macOS's, shared with Xcode).
What someone may be using, another agent mid-command, live streaming the device, or any tool that isn't
looktap, is listed and left alone; --force stops it too, after asking (--yes: without). The same is in
looktap live's Troubleshoot panel and, for whoever holds an Android
phone, in the runner app's Troubleshoot card.
Errors name what's in the way. A busy device names the command holding it, its pid, and release --all --force
for when that session is gone. A stalled link names the adb calls left waiting on it. An Android helper that won't
answer names Appium or another tool on the phone. An iPhone runner that won't start names WebDriverAgent, Maestro
or an older looktap session holding the phone (only one UI test session can drive an iPhone).
Start from a clean state: install, reset, permissions
looktap install build/MyApp.app # iOS: a simulator build · Android: an .apk (keeps the app's data)
# installed com.example.myapp
looktap reset com.example.myapp # as if freshly installed: data and permissions cleared
looktap permission grant location com.example.myapp # no prompt
looktap permission revoke photos com.example.myapp # test the "denied" path
looktap permission reset camera com.example.myapp # it asks again on next use
looktap stop com.example.myapp # end it; prints "stopped" once its process is gone
looktap uninstall com.example.myapp
reset:- iOS: looktap copies the app's own bundle aside, uninstalls it and installs the copy, so documents, caches, app groups and permissions all go. The keychain survives, just as it does on a real iPhone, so an app that keeps its sign-in token there may still be signed in.
- Android:
pm clear.
- Permission names are the same on both platforms:
camera,microphone,location,location-always,photos,contacts,calendar,notifications,motion,all.- Android also takes any
android.permission.*, and acts only on permissions the app declares. Aresetalso clears "don't ask again". - The iOS simulator can't set
cameraornotifications; looktap says so.
- Android also takes any
- These commands never guess the app from the screen.
stop,uninstall,resetandpermissiontake the app id as an argument, or from--app/looktap.config.json.
Simulated conditions: location, dark mode, text size, orientation, network, push, notifications
looktap location 51.5072 -0.1276 # GPS (Android phones: test providers) · `location clear` · prints "location set"
looktap route --from-current --bearing 90 --distance 630m --speed 1.4 --step 5s --then-still 7m # walk out of a geofence
looktap appearance dark # or light; no argument prints the current one
looktap textsize ax2 # Dynamic Type / font scale: xs s m l xl xxl xxxl ax1…ax5
looktap statusbar clean # 9:41, full battery and Wi-Fi, for screenshots · `statusbar live`
looktap rotate landscape --ls # or left, right, upsidedown, portrait; no argument prints it
looktap fold open --ls # a foldable (iPhone Duo): closed, half or open; no argument prints it
looktap network offline # Android: airplane mode · `network online`
looktap push com.example.myapp "Your order has shipped" # iOS: an alert
looktap push com.example.myapp '{"aps":{"alert":"Hi"},"orderId":7}' # or any payload / a .json file
looktap notifications # what arrived: Notification Center / the shade, newest first
looktap notifications com.example.myapp --until "has shipped" # wait for it (up to --wait, default 30 s)
textsizeuses the iOS Dynamic Type sizes. On Android each size maps to the nearest font scale, from 0.8 to 2.0, the default beingl/largeon both.statusbar cleanuses iOS status-bar overrides, and Android's System UI demo mode.rotateturns the device the way Simulator's Rotate Left/Right does, or locks Android's rotation.landscapeisleft: the device turned counter-clockwise.lscoordinates, taps and screenshots follow the turned screen, so read the screen again afterwards. An app that doesn't support the orientation stays as it is, androtatesays so. On Android it leaves auto-rotate off.foldfolds or opens a foldable simulator, the iPhone Duo (Xcode 27.1), the way Device Hub's fold buttons do:closed(0°) shows the outer screen,half(130°) andopen(180°) the inner one.ls, taps, screenshots and recordings follow whichever screen it shows, so read the screen again afterwards. Closing takes the simulator a few seconds.network offlineturns on Android's airplane mode and waits until the device has no route out. The iOS simulator shares the Mac's network, so it can't go offline or slow by itself.pushdelivers a remote notification the way APNs would. The app needs notification permission, as on a device: iOS 27 refuses the push outright without it (iOS 26 delivered it anyway), andpushsays so.- A payload without
"aps"is sent as a silent (background) push carrying that data. - Android pushes can't be simulated locally. They come through Firebase (FCM), so send them from your backend or the Firebase console.
- A payload without
notificationslists the notifications the device holds, newest first: when, app, title (· subtitle) and body.[app]narrows it to one app;--jsongives every field.--until <text>waits until one whose title or body has the text is there (one already there counts), so a flow can check that a push, a reminder or a message arrived. It works on all four kinds of device, each read its own way:- iOS simulator: from the files SpringBoard keeps Notification Center in, so nothing on screen moves.
--jsonincludes the full push payload, badge, thread and category. - Android (emulator and device): from
dumpsys notification. Ongoing ones (charging, USB, a foreground service) are left out unless you name the app or pass--all. - A real iPhone: off the screen, through the runner: Notification Center is pulled down for a moment and
pushed back up, so the app in front stays in front. App names and times are as the phone shows them
(
HEALTH,2m ago), and there's no payload; iOS 16 and older give the title and body as one text. While--untilwaits, it watches for the banner.
- iOS simulator: from the files SpringBoard keeps Notification Center in, so nothing on screen moves.
Biometrics
looktap bio match # iOS: Face ID success · Android: enrolled finger 1
looktap bio nomatch # iOS: Face ID failure · Android: unknown finger
On Android, enrol a fingerprint once first: Settings → Security → Fingerprint, using a screen-lock PIN, and touch
with looktap bio match when it asks.
Android screenshots of secure screens
Apps that set FLAG_SECURE (common in banking and payment apps) make normal Android screenshots come out black. On
emulators, looktap shot takes the frame from the emulator itself, which gets past that. --plain takes a normal
on-device screenshot, for example to check that a screen is secure.
Tests and automation
What worked with your agent runs on its own afterwards. Every command is a plain shell call with an exit code, so a
shell script or a CI job can run the same steps: as flow files that looktap test checks, or as plain scripts.
Test flows in CI
A flow file is a run script: one looktap command per line, # for comments. Use wait where the app takes
time and expect where the flow should check something:
# flows/sign-in.txt
launch com.example.myapp
wait "Sign in"
fill Email sam@example.com
tap "Continue"
wait Welcome
expect "Sign in" --gone
$ looktap test flows/ -o results --junit results/junit.xml
✓ flows/browse.txt 9 steps · 6.1 s
✗ flows/checkout.txt 3.4 s
step 5 (expect Total = €4.20): expect failed: "Total" is "€0.00", expected "€4.20" (waited 3 s)
│ $ tap "Add to bag"
│ tapped "Add to bag" at 195,612
│ …
evidence: results/failures/flows-checkout
✓ flows/sign-in.txt 6 steps · 4.8 s
looktap: 3 flows: 2 passed, 1 failed · 14.3 s · results/junit.xml
Flows run in order on one device, each from wherever the last one left the app, so start each with launch (or
reset <app> and launch for a fresh install). Steps wait for their targets, but
a flow that depends on a backend can still be slow: raise --wait rather than adding sleeps.
A web page with no accessibility labels (many sign-in pages) gives wait nothing to match: wait --settle waits
until the screen, its picture included, holds still, and a blank page that's still loading doesn't count. Where a
person has to act (a consent screen, a second factor), handoff makes that a step: it tells them, then carries on
once the next screen shows. pause is the fixed wait for what's left. In a React Native dev build,
"dismissLogBox": true in looktap.config.json closes the LogBox toast before every tap:
# flows/google-sign-in.txt
tap "Continue with Google"
wait --settle
handoff "Sign in with Google and approve access" --until Home
expect Home
Flow files live in your repo, so never put real credentials in one. Sign in with a test-only account, and keep its
password out of the file: test replaces ${NAME} with that environment variable (a CI secret), e.g.
fill Password "${PASSWORD}".
In GitHub Actions, iOS runs on a macOS runner and Android on a Linux runner with KVM:
jobs:
ios:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: 22 }
- run: npm install -g @looktap/cli
- run: xcodebuild -scheme MyApp -sdk iphonesimulator -derivedDataPath build build
- run: looktap boot "iPhone 16" --headless
- run: looktap install build/Build/Products/Debug-iphonesimulator/MyApp.app
- run: looktap test flows/ -o results --junit results/junit.xml
- uses: actions/upload-artifact@v4
if: always()
with: { name: ios-results, path: results }
android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: 22 }
- run: npm install -g @looktap/cli
- run: ./gradlew assembleDebug
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
arch: x86_64
script: |
looktap -p android install app/build/outputs/apk/debug/app-debug.apk --grant
looktap -p android test flows/ -o results --junit results/junit.xml
- uses: actions/upload-artifact@v4
if: always()
with: { name: android-results, path: results }
Upload results/ even when the job fails: that's where the failed flows' screenshots and logs are.
Record a flow (codegen)
On Android you can write a flow by using the app. codegen restarts the app, then turns each touch into the step
that replays it:
$ looktap codegen flows/about.txt com.android.settings
+ stop com.android.settings
+ launch com.android.settings
+ wait Settings
recording com.android.settings to flows/about.txt — use the phone. …
+ scrollto "About phone"
+ tap "About phone"
+ back
+ tap "Search settings"
+ fill Search wifi
expect "Wi-Fi"
ok: "Wi-Fi" at 107,148
+ expect Wi-Fi
saved 9 steps to flows/about.txt — run it: looktap test flows/about.txt
- Taps are saved by label: a tap anywhere on a row is a tap on the row's label, when
tapwith that label finds the same row again. Where no label does (an icon with no accessibility label), it's saved astapxy, with a note. - Typing is one
fill, with the field's name and its final text. Text typed into a password field isn't saved: the step reads it from an environment variable instead (fill Password "${PASSWORD}"). - Scrolling that brought a row into view becomes
scrollto, which replays on any screen size. Other swipes (a carousel, a map) stay swipes. The navigation bar's Back and Home, and gesture navigation, becomebackandhome. - Checks: type a command into the terminal while it records, e.g.
expect "Welcome". It's run, and saved if it passes.undodrops the last step.
It reads the touchscreen through adb shell getevent, so it records real fingers (not taps sent by looktap itself).
It isn't available on iOS yet: write the flow by hand there, or record it on Android if the app is the same.
A repeatable screenshot sweep
#!/bin/sh
set -e
looktap launch
for route in home search messages profile settings; do
looktap open "myapp://$route" --ls > /dev/null
looktap shot "$route"
looktap swipe 200 700 200 250
looktap shot "${route}__scrolled"
done
Same screen on several devices
looktap boot "iPhone 14" --headless && looktap boot "iPhone 16 Pro" --headless
looktap devices
# ios 42E41FA7-… iPhone 14 · simulator · iOS 26.0 · headless
# ios F9213EDC-… iPhone 16 Pro · simulator · iOS 26.0 · headless
# android emulator-5554 Pixel_9a · emulator · Android 16 · window
for d in 42E41FA7-EA40-45C1-8C6E-13A70BAF1FD6 F9213EDC-180D-412B-B24C-2FD69A37D3AC; do
looktap -d $d open myapp://home
looktap -d $d wait "Home"
looktap -d $d shot -o shots/$d home
done
A command that names no device uses the one the last command used, for 10 minutes and while it's still up, without
listing devices again (0.3–0.5 s saved on each command). boot and every command that names a device (-d,
LOOKTAP_DEVICE) set it. When two people or agents drive two devices at the same time, each should name its device
on every command.
For AI agents
Pick the route that fits your agent:
| Your agent | Use | Set up |
|---|---|---|
| Claude Code | The plugin: the CLI plus a skill that teaches the loop | /plugin install looktap --marketplace lakpriya1s/looktap, then /looktap:setup (details) |
| Other agents with a shell (Codex, Cursor, Gemini CLI, Copilot, OpenCode, …) | The CLI plus the skill, in each agent's own skills folder | looktap skill --install (details) |
| Chat apps without a shell (Claude Desktop, …) | The MCP server | npx -y @looktap/mcp (details) |
Every coding agent
looktap skill --install finds the coding agents on your machine (by their config folder or command) and writes
the skill into the folder each one reads, with the frontmatter that agent accepts: Codex, for one, rejects fields
it doesn't know. The skill is a short SKILL.md for the everyday loop plus references/ (every command, flows,
devices, debugging) that the agent reads only when a task needs them; both are copied. Each copy carries looktap's
version: run it again after upgrading, and looktap doctor says when a copy is out of date. looktap skill commands (or flows, devices, debugging) prints one reference.
looktap skill --install # every agent found here, user-wide
looktap skill --install --agents codex,gemini # just these (or --agents all)
looktap skill --install --project # into this repo, to commit for the team
looktap skill --list # what's supported, found and installed where
looktap skill --uninstall
| Agent | --agents | User-wide | In a repo (--project) |
|---|---|---|---|
| Claude Code | claude | ~/.claude/skills | .claude/skills |
| Codex CLI | codex | ~/.agents/skills | .agents/skills |
| Cursor | cursor | ~/.cursor/skills | .cursor/skills |
| Gemini CLI | gemini | ~/.gemini/skills | .gemini/skills |
| GitHub Copilot | copilot | ~/.copilot/skills | .github/skills |
| OpenCode | opencode | ~/.config/opencode/skills | .opencode/skills |
| Antigravity | antigravity | ~/.gemini/config/skills | .agent/skills |
| Kiro | kiro | ~/.kiro/skills | .kiro/skills |
| Grok Build | grok | ~/.grok/skills | .grok/skills |
| Hermes Agent | hermes | ~/.hermes/skills | .hermes/skills |
| Pi | pi | ~/.pi/agent/skills | .pi/skills |
| Mistral Vibe | vibe | ~/.vibe/skills | .vibe/skills |
| Qoder | qoder | ~/.qoder/skills | .qoder/skills |
| Rovo Dev | rovo-dev | ~/.rovodev/skills | .rovodev/skills |
| Trae / Trae CN | trae, trae-cn | ~/.trae/skills, ~/.trae-cn/skills | .trae/skills, .trae-cn/skills |
Claude Code's folder follows CLAUDE_CONFIG_DIR when it's set. If Claude Code already has the looktap plugin, it's
skipped: the plugin carries the skill and updates with it, and a second copy would show Claude the skill twice.
--project writes .claude/skills and .agents/skills unless you name agents: between them, Claude Code, Codex,
Cursor, Gemini CLI, Copilot, OpenCode, Pi, Mistral Vibe, Antigravity and Grok Build all find it. Some agents need
skills switched on first (Cursor, Gemini CLI); Hermes asks you to trust a repo's skills once (hermes skills trust).
An agent without skills can read the guide from looktap skill, which prints it.
Already manage skills with npx skills? npx skills add lakpriya1s/looktap
finds the skill in this repo and installs it too. It copies the guide as it is, without the per-agent frontmatter or
the version that doctor checks, so looktap skill --install is the one to rerun after upgrading looktap.
An agent spends seconds per turn, so turns matter more than milliseconds. looktap is built to save them: in the benchmark the CLI needed 8 calls for a scenario that took other tools 9–27 on iOS, and 12 where they took 11–19 on Android.
-
--lson any action prints the screen once it has settled, so acting and looking take one turn instead of two:looktap tap @3 --ls looktap fill "Email" a@b.co --ls -
waitinstead of guessingsleeps. After an action that loads data,--lscan return a loading skeleton, so wait for the text you expect. For a launch,launch --until "<text>"does both in one call. -
runbatches steps you already know into one call and one process. It prints each step as$ <step>, stops at the first failure, and names it.--lsprints the screen it ended on:looktap run 'tap General; wait About; tap About' --ls looktap run - < steps.txt # one step per line, # for comments -
A failure shows the screen. When a label or
@refisn't there, a label is ambiguous or anexpectdoesn't hold (in arunstep too), looktap prints the error and then the screen as it is, with fresh@refs. The next call can fix the step without anlsfirst. -
logs/crashesafter a step that misbehaved. Eachlogsshows only what's new since the last one. -
perf/launch --timewhen the question is speed or memory: numbers instead of impressions.perf --forwhile the screen does the thing being measured, andperf --framesbefore and after it. -
ls --jsonfor structured output:{screen, elements: [{ref, label, type, x, y, w, h, value}]}. -
shot --scale 0.5costs a quarter of the image tokens when the agent needs to see the screen (layout, colours, images). Usuallylsis enough and the PNG is never opened. -
Hints when the screen isn't what it seems. When a passcode or permission prompt covers the app,
lsprints a hint rather than an empty list.
Claude Code plugin
In Claude Code, run:
/plugin install looktap --marketplace lakpriya1s/looktap
- What it adds:
- the looktap skill, which teaches Claude the look-act loop, how to pick targets, when to wait, when a screenshot is worth it, how to debug a crash, and the safety rules;
/looktap:setup, which gets the machine ready: it installs the CLI (asking first), runslooktap doctorand explains each fix, offers to boot a simulator or emulator, walks you through a real iPhone's one-time steps, and finishes with a workingls. Addios,androidoriphoneto set up just that.
- What it doesn't install: Xcode, the Android SDK and the Apple ID sign-in are yours to do;
/looktap:setuptells you exactly what's missing. - What it costs: about 150 tokens per session for the skill's description, and about 4.5k tokens each time Claude loads the skill.
- Staying current: every push to this repo is a new plugin version. Claude Code doesn't auto-update
third-party plugins unless you turn it on (
/plugin→ Marketplaces → looktap → Enable auto-update); otherwise run/plugin marketplace update looktapnow and then. - The CLI: the skill runs
looktapcommands. Install them withnpm install -g @looktap/cli, or the skill falls back tonpx @looktap/cli. - No MCP server inside, on purpose: with a shell, the CLI and the skill do the same job with fewer tokens, and
an MCP server would add its 16 tool definitions to every session. Add
@looktap/mcpseparately if you want it anyway.
MCP server, for clients without a shell
Agents with a shell (Claude Code, Codex, Cursor's agent, …) are best served by the CLI and the skill above.
For chat apps and other clients without a shell, such as Claude Desktop, looktap is also an MCP server,
published as @looktap/mcp and listed in the
MCP Registry as io.github.lakpriya1s/looktap. Nothing to install first:
{ "mcpServers": { "looktap": { "command": "npx", "args": ["-y", "@looktap/mcp"] } } }
If your client can't find npx (desktop apps start servers with a minimal PATH), install the CLI and let it
write the config with absolute paths:
looktap mcp --config # prints a ready-to-paste client config with absolute paths
{
"mcpServers": {
"looktap": {
"command": "/path/to/node",
"args": ["/path/to/looktap/bin/looktap.js", "mcp"],
"env": { "PATH": "/path/to/node/bin:/path/to/Android/sdk/platform-tools:/usr/bin:/bin" }
}
}
}
- Where to paste it:
- Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json - Cursor:
~/.cursor/mcp.json - Claude Code:
claude mcp add looktap -- npx -y @looktap/mcp(no install needed: it runs the latest version from npm). Or the absolute paths:claude mcp add looktap -- <node> <looktap.js> mcp
- Claude Desktop:
- Why absolute paths: desktop apps start servers with a minimal
PATH.looktapalso findsadbin the Android SDK by itself. - The tools:
ls,tap,tap_xy,long_press,fill,paste,code,type,key,hide_keyboard,swipe,scroll_to,back,homeandwait;screenshot, which returns the image itself;logsandcrashes;perf: CPU, memory and threads, or withframesthe frames and jank since the last call (for: seconds to sample);looktap, for any other command line (apps,perf,launch --time,boot…), or several separated by;.
- Actions return the settled screen unless
ls: false. That saves the agent a separatels, but each action then waits for the screen to stop moving, 0.7–1.9 s in the benchmark. Passls: falsewhen you don't need to see the result. - The device is remembered: name a
platform(ordevice) once when both an iPhone and an Android are booted. - Speed: the server keeps each device's helper connection open, so a warm
lscomes back in 40–70 ms.
Why a CLI first? Any agent with a shell can use it with no configuration, and its output is already as small as
it gets. In the benchmark the CLI beat the MCP server on both platforms, mostly because it doesn't wait for the screen
to settle unless asked (--ls).
Commands
| Command | What it does |
|---|---|
| Look | |
looktap ls [--all] [--json] [--covered] | Visible elements with a label, plus unlabelled buttons, each with an @ref. --all includes everything. --json prints {screen, elements}. A row that something listed is drawn over, or that runs past the screen's edge, says how much: [56% covered by @16 @17 @18], [30% off screen] (in --json: covered, coveredBy, offScreen), so a list row half under a tab bar or a toast over a button shows without a screenshot. --covered lists only those rows: a quick layout check. While the screen is still loading (nothing labelled yet), waits up to --wait. An Android text field shows its label or hint, with what's typed as = value, as on iOS. --all folds a react-native-svg drawing into one row ((svg, 9 shapes)). Notes on stderr when React Native's LogBox toast is up (it blocks taps around it) or the system's "isn't responding" / "keeps stopping" dialog is |
looktap wait <label|@ref> [--gone] | Until it's on screen (with --gone, until it isn't). Default up to 10 s, or --wait. Exits 2 on timeout |
looktap wait --settle [--for 1s] | Until the screen holds still for 1 s (or --for): its elements and its picture both, so it works on web pages and canvases that have no labels to wait for (a sign-in page loading). Small screenshots are compared, so a blinking caret doesn't count as change. Up to 10 s, or --wait; exits 1 if it's still changing |
looktap expect <label|@ref> [= value] [--gone] [--exact] | Checks it's on screen, with = value that its value is exactly that, or with --gone that it isn't. Matches like wait (--exact: the whole label only). Waits up to --wait (3 s) for it to come true. Exits 1 with what's there instead: expect failed: "Email" is "sam@example.com", expected "kim@example.com" |
looktap scrollto <label> [--up] | Swipes until the element is fully on screen. Each swipe holds still before lifting, so the list stops where it was dragged instead of coasting. With the keyboard up it swipes above it, and stops with a message if the keyboard leaves no room. Fails at the end of the list, or after 15 swipes |
looktap shot <name> [--plain] [--scale f] [--points] | Saves <out>/<name>.png (or the absolute path given) and prints its path. On stderr, how the image maps to the screen: 216x384 px = 360x640 dp: tapxy x y = image x y × 1.667. --points saves it at one pixel per iOS point or Android dp, so a spot picked in the image is tapxy's x y as it is, with no scale maths |
looktap shot <name> --mark <label|@ref|x,y> | The same screenshot with a pointer drawn where a tap on that label or @ref would land, or at the point x,y. Works on every device, with --scale and --points too |
looktap burst <dir> <seconds> | A frame each time the screen changes. Only distinct frames are kept |
looktap record start [name] · record stop | An MP4 of everything in between, saved to <out>/<name>.mp4; stop prints the path and the length. Android: at most 3 minutes, FLAG_SECURE screens black |
Act (add --ls to print the settled screen afterwards) | |
looktap tap <label|@ref> [--exact] | @ref from the last ls, or a label: exact, else a prefix/contains match that names a single label (ambiguous → exit 2, as is one label in two separate places). Aims at a part of the element nothing covers (a toast over half a button), and warns when nothing is left clear. Prints what it tapped |
looktap longpress <label|@ref|x y> [ms] | Holds the touch for ms (default 800; or --duration <ms>). Same targets as tap, or a point |
looktap zoom in|out [x y] [--scale f] | Two-finger pinch around a point (default: the screen centre). --scale sets how far apart the fingers end up (default 2.5) |
looktap tapxy <x> <y> | Taps a point (iOS points / Android dp) |
looktap value <label|@ref> | Prints the element's value and nothing else (a switch: 1 or 0, a field: its text), for scripts: [ "$(looktap value "Record walks")" = 1 ] |
looktap type <text> | Types into the focused field. Text the keyboard can't type (accents, emoji, CJK) is pasted, which replaces the clipboard. Doesn't check the field: expect "<field>" = … does |
looktap key <name> … | return, escape, delete, tab, space, selectall, paste, home. Android also back, any KEYCODE_* |
looktap fill <label|@ref> <text> [--exact] | Focuses the field, clears it, types. Empty text just clears. Then reads the field back: if a character went missing it retypes key by key (then, on the iOS simulator, pastes the text when the clipboard takes it), and exits 1 naming what the field holds if it still doesn't match. Formatting a field adds (spaces, a currency sign) passes; a password field is checked by its length |
looktap paste <text> | Puts the text on the device's clipboard, checks it's there, and pastes it into the focused field. iOS simulator: Xcode 27 mirrors the Mac's clipboard into the simulator's, which wins over simctl pbcopy, so it goes through the Mac's clipboard when it must and puts back the text it held. Exits 1 if the clipboard won't take it |
looktap code <digits> | A one-time code into its row of boxes (four or more small fields side by side, a second line included): taps the first box, types the digits, and checks every box. Retries tapping each box, then pasting the code. Exits 1 listing what each box holds if they don't read the code, or if another field changed |
looktap hidekb | Dismisses the keyboard and takes focus from the field (blur handlers run), checking after each method. Exits 2 if it's still up |
looktap swipe <x1> <y1> <x2> <y2> [ms] | Default 150 ms on iOS, 300 ms on Android. --duration 800 (or 800ms, 0.8s) is the same as the fifth argument |
looktap back | Android system Back · iOS: the navigation bar's back button, else a top-left "Back" button |
looktap home | The Home button: goes to the home screen and checks it's in front; the app keeps running |
looktap open <url> | Opens a deep link |
looktap launch [app] [--time|--resume] [--until <text>] | (Re)starts the app, and waits until it's in front: an app that exits at once fails the command (looktap crashes <app> has the report), and one that dies just after is named by the next ls. --time times a cold start: until the app is in front, and until its first screen settled. It says when screen reads are too slow to time the screen precisely. Android adds the system's own TotalTime. --resume brings a running app back to the front as it was, without restarting it (and starts it if it isn't running). --until <text> then waits until that text is on screen (up to --wait, default 30 s): past a splash screen, or a debug build loading its bundle from Metro. After launch --ls alone, a screen of a few rows with nothing to tap gets a note that it may still be loading |
looktap stop [app] (or terminate) | Terminates the app and waits until its process is gone. Android: a force-stop, which also removes the app's geofences, alarms and jobs (use kill to test "the app was killed") |
looktap ps <app> | The app's pid, how long it has run, and whether it's in front or in the background (not running when it isn't). iOS simulator: uptime from the Mac's ps; a real iPhone: pid and front only |
looktap kill [app] | Ends the app's process the way the system does under memory pressure: Home first, then Android am kill (SIGKILL through run-as on a debuggable build with a foreground service) or iOS SIGKILL, as jetsam sends. What it registered survives (geofences, alarms, jobs, region monitoring), so the system can start it again for them: the way to test background behaviour after the app was killed |
looktap background [app] | Home, then checks the app is in the background and still running, with its pid |
looktap bio match|nomatch | Face ID (iOS) or fingerprint (Android) |
looktap dismiss logbox [--until-gone] | Closes React Native's LogBox toast (dev builds), which takes every touch around it, a bottom tab bar included: taps its × and waits until it's gone. Says so when there's none. --until-gone closes it again each time it comes back, until it has stayed gone for a second (it fails after --wait, default 10 s, when a warning logged on every render keeps bringing it back). tap on an element the toast covers closes the toast first and says so. "dismissLogBox": true in looktap.config.json (or LOOKTAP_DISMISS_LOGBOX=1) closes it before every tap, longpress and tapxy |
looktap rotate [portrait|landscape|left|right|upsidedown] | Turns the device (landscape = left, turned counter-clockwise). ls, taps and screenshots follow the turned screen. Says so if the app doesn't support the orientation. Without an argument, prints the current one |
looktap fold [closed|half|open] | Folds or opens a foldable simulator (the iPhone Duo). ls, taps and screenshots follow the screen it then shows. Without an argument, prints which screen that is |
Debug ([app] defaults to --app / config, else the app in front) | |
looktap logs [app] [--errors] [--grep re] [--since 5m] [--lines n] [--all] | The app's log since the last logs (the first call covers the last minute). At most 80 lines, newest kept. A real iPhone keeps no history looktap can read: the first logs or launch starts collecting its live log in the background (over USB or Wi-Fi, until 30 minutes after the last one), and later calls read from that |
looktap logs [app] --follow [--grep re] [--for 10m] | The app's log as it comes, until Ctrl+C or --for, with its process starting and ending as events between the lines: ── app relaunched in the background, pid 4242 (broadcast …). Android follows the app's uid, so a restarted process is followed too, and the system's line says why it was started; iOS follows the process and reports a new pid. How to see a region exit relaunch a killed app |
looktap logs [app] --buffer main|system|crash|events|all · --tag T1,T2 · --clear | Android logcat filters: one buffer (default: logcat's own, main, system and crash), or only those tags. --clear empties the device's log (logcat -c). Whenever no lines come back, looktap checks the device's newest log line against its clock and warns when it's far behind: a stale buffer or a stopped logd, where an empty answer proves nothing. --follow --file f appends the capture to a file; after an adb restart the capture attaches again by itself and records the gap (── capture interrupted 12:41:03–12:41:20: adb restarted by …) |
looktap logs mark [name] | Puts a marker on the device's timeline (default name mark): logs --since <name> (and crashes --since <name>) start there. Mark, act, then read what the action caused |
looktap crashes [app] [--since 1h] | Crashes, ANRs and low-memory kills since the last crashes (the first call covers the last hour) |
looktap app [app] | The app in front and its pid, and whether [app] is running |
looktap app [app] --paths | Where the app's files are. iOS simulator: its bundle, data folder and app groups, as paths on the Mac. Android: its APKs and data folder, which adb shell run-as reads on debuggable builds |
looktap prefs <app> [key …] [--file f] [--redact k,…] [--json] | The app's own settings as key = value: UserDefaults on iOS (a real iPhone: development-signed builds, over house_arrest), SharedPreferences on Android (debuggable builds, through run-as; --file picks the file). Values whose keys look like coordinates (homeLat, last_lng, a lat,lon pair in a string or in JSON) are redacted by default, and --redact names more keys to hide. Keys asked for that aren't set fail with exit 1 |
looktap geofences [app] | Android: the geofences the system holds for the app, coordinates never printed: whether Play services is geofencing for it (its location request on the app's behalf, and when that was added or removed), each geofence's id, radius and transitions where the Play services build lists them, and AOSP proximity alerts. iOS doesn't show an app's monitored regions: see capabilities for the recipe |
looktap battery [app] [--reset|--restore] | Android: the app's estimated battery use and the batterystats lines about background work (wake locks, GPS, jobs, alarms, network). --reset starts a measurement and makes a phone on USB count as unplugged, so the stats build up over the cable; --restore undoes that |
looktap network <app> [--for 60s] | Android: what the app sent and received over the window (bytes and packets each way, from netstats), and the bursts it came in: an app that batches its uploads shows few |
looktap perf [app] [--for 10s] [--json] | The app's CPU (100% is one core), memory and threads. iOS simulator: the memory footprint Xcode's gauge shows, and its peak. Android: PSS, RSS, Java and native heap. Real iPhone: CPU, footprint and threads through Instruments (xcrun xctrace, part of Xcode), 10–25 s a reading. --for takes a reading each second (a real iPhone: about every 8 s), then prints avg/max |
looktap perf [app] --frames | Frames since the last perf --frames, the janky share and p50/p90/p95/p99 frame time. Android: the app's own render times (gfxinfo) and why frames were late. iOS: frames as the screen shows them (the simulator's framebuffer, a real iPhone's USB screen feed), fps while moving and the longest stall; the first call starts counting |
looktap capabilities [--json] | What this device can't do, or can only in part, and why. --json: every command with supported, conditional or unsupported |
App state (<app> from the argument or --app / config, never the app in front) | |
looktap apps [filter] [--all] [--json] | The installed apps: id, name (iOS) and version. --all adds the system's own apps. A filter matches part of the id or name, system apps included, and exits 1 when nothing matches, so looktap apps com.example answers "is it installed?" |
looktap install <path> [--grant] | iOS: a simulator .app, or on a real iPhone an .app/.ipa built and signed for devices. Android: an .apk, replacing an installed copy and keeping its data (--grant: all runtime permissions). Prints the app id, its version code (Android) and how long it took. A failure says why in the system's words (an iPhone with too little storage, an Android downgrade or signature mismatch) and what to do |
looktap uninstall <app> | Removes the app |
looktap reset <app> | As if freshly installed: data and permissions cleared. iOS: the keychain survives |
looktap permission grant|revoke|reset <name> [app] | camera, microphone, location, location-always, photos, contacts, calendar, notifications, motion, all, … Android also takes android.permission.* |
| Conditions | |
looktap location <lat> <lon> · location clear | Simulated GPS. Prints location set, never the coordinates (a failure prints failed: <reason> with any coordinate taken out). Android phones (12+): through the shell's gps and network test providers, nothing installed; clear removes them and the real GPS is back. The emulator keeps its last fix |
looktap route --from <lat,lon>|--from-current|--offset-from-pref <app>:<latKey>,<lonKey> --distance 630m [--bearing 0] [--speed 1.4] [--step 1s] [--then-still 7m] [--background] · route --gpx <file> [--speed-scale 2] · route stop|status | Movement rather than a point: a fix every --step along a straight line (bearing in degrees from north, speed in m/s) or a GPX track (its own pace, --speed-scale times faster), then held still for --then-still. iOS simulator: simctl location start; iPhone on iOS 16 or older: the developer image; Android: the gps and network test providers. Prints distance and time, never coordinates. --background returns at once (route status, route stop); route stop and location clear restore the real GPS |
looktap appearance [dark|light] | Dark mode. Without an argument, prints the current mode. Android: says when the app in front restarted for the change (refs are then stale) |
looktap textsize [size] | Dynamic Type (iOS) / font scale (Android): xs s m l xl xxl xxxl ax1…ax5, or iOS names such as accessibility-large. Without an argument, prints the current size. Android: says when the app in front restarted for the change (refs are then stale) |
looktap statusbar clean|live | A screenshot-clean status bar (9:41, full battery and Wi-Fi), or back to live values |
looktap touches [on|off] | A pointer where each touch lands, on the device itself, so shot, record and anyone watching see it; a swipe leaves a fading trail, and the screen's inside edge glows while looktap is touching it. Android: looktap's touches, in every app. iOS simulator: every app started after it, and the home screen (restarted once). A real iPhone: only an app built with LooktapTouches.m. No argument prints the current state. See Show where it taps |
looktap network [offline|online] | Android only: airplane mode on or off, waiting until the device has lost (or regained) its connection. Without an argument, prints the current state |
looktap push <app> <payload> | iOS: a remote notification. The payload can be a .json file, inline JSON, or plain text for an alert |
looktap notifications [app] [--until <text>] [--all] [--json] | What Notification Center (iOS) or the notification shade (Android) holds, newest first: app, title, body (iOS simulator: the push payload too). --until waits until one has the text (up to --wait, default 30 s). A real iPhone is read off its screen, with Notification Center pulled down for a moment. --all: ongoing ones too |
| Batch, setup & info | |
looktap mcp [--config] | Serves these commands over MCP (stdio) for clients without a shell. --config prints a client config |
looktap run '<cmd>; <cmd> …' [--ls] | Several commands in one process. run - reads them from stdin. Stops at the first failure and names it, with the screen and the steps it didn't reach (not run: 3. tap Internet · 4. wait Airplane), so the agent sends the steps that fit the screen instead; --ls prints the screen it ended on. Separate looktap commands chained in one shell script (one per line, or with ;) stop too: after a failed action, the later actions and waits are skipped at once with what failed, instead of each failing slowly on the wrong screen or tapping something on it. Reading the screen (ls, shot) still runs and lifts the stop; a terminal is never stopped; LOOKTAP_CONTINUE_AFTER_FAILURE=1 runs them anyway |
looktap codegen <flow-file> [app] | Android: restarts the app, then saves each touch on the device as the step that replays it: tap "<label>", fill <field> <text>, scrollto, longpress, zoom, back, home. A command typed while it records (expect "Welcome") is run and saved too; undo drops the last step; Enter on an empty line or Ctrl+C ends it. See Record a flow |
looktap pause <seconds> | Waits a fixed time: 2, 1.5s, 500ms. For what has nothing to wait on; wait and wait --settle are quicker and sturdier when they apply |
looktap handoff <message> [--until <label|@ref>] [--gone] | A step only a person can do: a consent screen, a second factor. Prints the message to the terminal at once (even inside test), shows it as a macOS notification (LOOKTAP_NOTIFY=0 turns that off), then waits until <label> is on screen (--gone: until it's off it), up to 5 minutes or --wait. Without --until, until Enter is pressed in the terminal. So "a person signs in, then looktap carries on" is a step of the flow, not a failure |
looktap test <flow|dir> … [--junit file] | Runs flow files (run scripts, one step per line) as tests, folders searched, and prints a line per flow and the totals. Exits 1 if any flow fails. A failed flow prints its output and leaves error.txt, output.txt, screen.txt, screen.png, logs.txt and crashes.txt in <out>/failures/<flow>/. An app that dies during a flow fails it. --junit writes a JUnit XML report |
looktap skill [name] [--install|--uninstall|--list] [--agents a,b|all] [--project] | Prints the AI-agent guide, or one of its references by name (commands, flows, devices, debugging). --install writes it for every coding agent on the machine (or --agents), each in its own skills folder, or into the repo with --project. --list shows the agents and what's installed where (details) |
looktap devices [--all] [--json] | What's running or connected, and what each is: simulator, emulator (with its AVD name) or real device (model, OS version, Wear OS for a watch, USB or Wi-Fi, and locked while its lock screen is up), and whether it has a window or runs headless. An Android phone on both USB and Wi-Fi is one row (USB + Wi-Fi), and commands drive it over USB; -d with its Wi-Fi id still picks Wi-Fi. A phone that's connected but not ready is listed with what to do (accept the USB or Wi-Fi debugging prompt, tap Trust, turn on Developer Mode, wake a device that gives adb no answer). A simulator or emulator still starting is listed as such. --all also lists what boot can start; --json for scripts and agents |
looktap boot [name] [--window|--headless] | Boots an iOS simulator or Android emulator by name, UDID or AVD name (exact, else a unique prefix or substring; -p to choose a platform) and waits until it's ready to drive. Opens its window unless --headless (or LOOKTAP_HEADLESS=1, or "headless": true in the config file). Already running: says so, and --window opens a simulator's window. One that's still starting (adb lists an emulator offline while it boots) is waited for, not started twice. A running device can't drop its window (closing the Simulator app shuts its simulators down; an emulator starts with or without one), so --headless then says how to restart it. From Xcode 27.1 simulators show in Device Hub, one window for the device picked in its sidebar: --window opens Device Hub, and you pick the simulator there |
looktap shutdown [name] | Shuts down a simulator or emulator (name, UDID, AVD name or serial), and waits until it's gone |
looktap live [--port n] [--host addr] [--control] | Every running simulator, emulator and connected phone live in one web page (a real iPhone as video on a cable, as screenshots on Wi-Fi); prints the page's address and runs until Ctrl+C. With the page's Control switch on, a click taps, a drag swipes, the wheel scrolls and typing types, and each device's buttons rotate it, switch dark mode, text size and touches, and open links. Screenshot and Record save a device's screen; Details shows battery, heat, storage and the front app's CPU and memory; Activity lists every looktap command as it runs. Troubleshoot (with Control) is for a device that's slow or stuck, one without a picture too (click its name): the way to it, Wireless debugging and Keep it on for an Android phone, everything holding it (as looktap who <device>), and Restart looktap's helper, Clear left-overs (release --all) and Stop everything (--force, after a second click). This computer only by default; --host 0.0.0.0 shares it on your network, watch-only unless --control. See Watch every device in your browser |
looktap runner [install|remove] | Android: the looktap runner app (com.looktap.app, opt-in), the same screen a real iPhone's runner app has: which computer is connected, the last commands, a Troubleshoot card (the link's round trip, Wireless debugging, restarting looktap's helper), and two switches for whoever holds the phone, Allow control (off: looktap can still read the screen, but every action is refused with "paused on the phone") and Show touches (the pointer, in step with looktap touches). install puts it on with touches on and opens it; remove takes it off; no argument says whether it's installed and paused. Android 10+. See The runner app on the phone |
looktap wifi [--tcpip|--always|--off] | An Android phone on USB: connects it over Wi-Fi as well, so the cable can come out. Android 11+: turns on Wireless debugging and waits until adb reaches it (the phone may ask "Allow wireless debugging on this network?" first); older Android, or --tcpip: adb tcpip 5555 and adb connect. -d with the USB serial still finds the phone once it's unplugged. Either way the phone turns it off when it restarts: plug in and run wifi again, or once wifi --always (Android 11+): the looktap runner app (com.looktap.app, installed or updated, the same app as looktap runner) then turns Wireless debugging back on by itself after a restart and whenever the phone joins Wi-Fi, before the first unlock too. Its Troubleshoot card has the same Keep it on switch; wifi --off turns it off and leaves the app. A network the phone wasn't told to always allow still asks first, and if someone turns Wireless debugging off (or declines that prompt), it stays off until the phone next joins Wi-Fi. (Until runner 2 this was a separate app, com.looktap.wifi: runner install and wifi --always replace it, keeping it on) |
looktap pair <code> [host:port] | An Android phone with no cable: pairs this computer with it over Wi-Fi using the six-digit code from Developer options → Wireless debugging → Pair device with pairing code (looktap finds the phone on the network; or pass the host:port shown under the code), then connects. Once paired, adb reconnects by itself whenever Wireless debugging is on |
looktap connect <host[:port]> | An Android device with no cable and no pairing code: connects to the address its debugging screen shows, such as a Wear OS watch's Developer options → Debug over Wi-Fi (Galaxy Watch 4 and others like it), or any device after adb tcpip. Port 5555 when left out. Checks the address answers first, then waits up to a minute while the device asks "Allow debugging?". It goes off when the device restarts: turn it back on and run connect again. See Wear OS watches |
looktap doctor [-d <device>] | Checks Node, Xcode and the simulator frameworks, adb, booted devices and the agent skill (an outdated copy counts only for the agent running doctor). With -d, the way to that device: a real iPhone's pairing, Developer Mode, CoreDevice tunnel and usbmuxd, lock state, which routes its runner answers on and which one commands use, and the signing team; an Android device's way, layer by layer: the adb server (version, pid, uptime) and every adb process on the Mac with how long it has run, the device's state and shell round-trip time (ok, slow, unresponsive, unauthorized, offline, or the adb server itself stuck), its USB port path with a warning when it goes through hubs, whether the same phone answers over Wi-Fi when USB is slow, the adb reverse rules, the lock state, and whether --app is installed. When the phone doesn't answer well, the recovery steps in order. --fix restarts the adb server, only when that can help (not when the server and the phone both answer, or the phone answers over Wi-Fi): it says so first, lists every looktap command and adb process that will be cut off and asks (--yes skips that; a shell that can't ask needs it), warns looktap holders, and puts the adb reverse rules back afterwards. See When a device is slow, stuck or held |
looktap who [device] | Who is using the devices: each looktap command running (exclusive for taps, typing, launch, install, stop, location; shared for logs and screenshots), with its owner, command, age and last heartbeat, and every adb or idevicesyslog process looktap didn't start, and looktap live while it shows a device in the browser. Holds whose process is gone are cleared. With a device (Android, iPhone or simulator): everything holding it, each with pid, age, who started it and whether it's in use or left over: looktap commands, live and mcp, looktap's runner session or helper, adb/simctl/devicectl calls, other tools (Appium, WebDriverAgent, Maestro, scrcpy, iproxy, idb, Instruments), adb forwards and reverses, what runs on an Android phone (looktap's helper, Appium's servers, scrcpy's server), and the ways to an iPhone (USB, Wi-Fi, the CoreDevice tunnel). A phone on USB and Wi-Fi is looked at under both ids. LOOKTAP_OWNER names a session |
looktap release <device> [--force] | Clears leases whose process is gone or silent for 30 s. --force clears live ones too, after asking (--yes: without) |
looktap release <device> --all [--force] | Clears everything left holding the device, so a new session starts clean, and says each thing it did. Without asking: dead holds, left-over adb, simctl and devicectl calls (their parent is gone), and looktap's own way in when no looktap command is running: its adb forwards and helper on an Android phone, its runner session on an iPhone (xcodebuild or testmanagerd, the older ones too), its simulator helper. Kept: adb reverse rules (Metro), the runner and Wi-Fi keeper apps, the CoreDevice tunnel. What someone may be using (a looktap command mid-run, live streaming the device, Appium, WebDriverAgent, Maestro, scrcpy, iproxy, idb, Instruments, an adb client looktap didn't start) is listed, and stopped only with --force, after asking (--yes: without) |
looktap reverse <port>[:<port>] · reverse --list · reverse remove <port>|all | Android: adb reverse, so the device's localhost:<port> reaches this computer's port. doctor --fix puts the rules back after an adb restart. The iOS simulator needs none (it shares the Mac's network) |
looktap metro [port] | Is Metro answering on this computer (localhost:8081/status), is the reverse rule set (Android: added if not), and can the device reach Metro through it |
looktap setup | Starts the helper ahead of time. Android: also adb reverse tcp:8081 for Metro |
looktap teardown | Stops the helper. Android: also removes adb reverse rules |
--ls works on tap, longpress, zoom, tapxy, fill, type, key, paste, code, hidekb, swipe, back, home, open, launch, bio,
rotate, fold and scrollto. After the action it waits for the screen to change (up to 1.5 s, or 6 s for launch/open), then for
it to stop changing, then prints it like ls.
Exit codes: 0 means OK. 2 means a usage problem: bad arguments (an option looktap doesn't know too: it's
never dropped quietly), element not found, no device, or the helper can't start. 1 means anything else failed, including an expect that didn't hold and a test run with a
failed flow. A script can set -e and stop at the first missing element. After a missing or ambiguous element or a
failed expect, the screen as it is follows the error.
Platform support
Every command works on all four kinds of device except the ones below. ⚠️ means it works with the limit shown; ❌
means it doesn't run there and exits 2 with that reason. looktap capabilities prints the same for the device in
front of you (--json for every command).
| Command | iOS simulator | iPhone / iPad | Android emulator | Android device | Apple Watch simulator | Wear OS watch |
|---|---|---|---|---|---|---|
app --paths | ✅ | ❌ an app's files on a device stay on it: Xcode → Window → Devices and Simulators → the app → Download Container | ✅ | ✅ | ✅ | ✅ |
appearance | ✅ | ✅ | ✅ | ✅ | ❌ watchOS is always dark, and the simulator refuses an appearance change | ⚠️ Wear OS draws its own interface dark whatever the setting; apps that follow the night mode see the change |
back | ⚠️ iOS has no system Back: it taps the navigation bar's back button, else a top-left Back button | ⚠️ iOS has no system Back: it taps the navigation bar's back button, else a top-left Back button | ✅ | ✅ | ⚠️ the screen's back button, else a swipe from the left edge | ✅ |
battery | ❌ iOS keeps no per-app battery figures the Mac can read: Xcode's Energy gauge (while debugging) or Instruments' Energy Log; looktap perf gives CPU, the main cost | ❌ iOS keeps no per-app battery figures the Mac can read: Xcode's Energy gauge (while debugging) or Instruments' Energy Log; looktap perf gives CPU, the main cost | ⚠️ batterystats counts only on battery: battery --reset also makes a device on USB count as unplugged (battery --restore undoes that); figures are estimates | ⚠️ batterystats counts only on battery: battery --reset also makes a device on USB count as unplugged (battery --restore undoes that); figures are estimates | ❌ iOS keeps no per-app battery figures the Mac can read: Xcode's Energy gauge (while debugging) or Instruments' Energy Log; looktap perf gives CPU, the main cost | ⚠️ batterystats counts only on battery: battery --reset also makes a device on USB count as unplugged (battery --restore undoes that); figures are estimates |
bio | ✅ | ❌ Face ID needs a real face on a device | ✅ | ❌ fingerprints can only be simulated on an emulator | ❌ an Apple Watch has no Face ID or Touch ID: it unlocks with its passcode or its iPhone | ❌ Wear OS watches have no fingerprint sensor |
burst | ✅ | ✅ | ✅ | ⚠️ FLAG_SECURE screens come out black (emulators bypass it) | ✅ | ✅ |
code | ✅ | ✅ | ✅ | ✅ | ❌ digits aren't on the watch keyboard's letters layout | ✅ |
codegen | ❌ recording touches works on Android only, for now: write the flow by hand, or record it on an Android device | ❌ recording touches works on Android only, for now: write the flow by hand, or record it on an Android device | ✅ | ✅ | ❌ recording touches works on Android only, for now: write the flow by hand, or record it on an Android device | ✅ |
crashes | ✅ | ⚠️ iOS 16 and older only (read from the phone's crash report service); on a newer iPhone see Xcode → Window → Devices and Simulators → View Device Logs | ✅ | ✅ | ✅ | ✅ |
fill | ✅ | ✅ | ✅ | ✅ | ⚠️ typed on the watch's own keyboard (see type): letters and spaces only | ✅ |
fold | ⚠️ a foldable simulator only: the iPhone Duo (Xcode 27.1 or later) | ❌ only the iPhone Duo simulator folds, for now | ❌ only the iPhone Duo simulator folds, for now | ❌ only the iPhone Duo simulator folds, for now | ❌ only the iPhone Duo simulator folds, for now | ❌ only the iPhone Duo simulator folds, for now |
geofences | ❌ iOS doesn't show another process an app's monitored regions: have the app log CLLocationManager.monitoredRegions (count and identifiers) with os_log/NSLog, then looktap logs --grep region (the skill's references/location.md has the recipe) | ❌ iOS doesn't show another process an app's monitored regions: have the app log CLLocationManager.monitoredRegions (count and identifiers) with os_log/NSLog, then looktap logs --grep region (the skill's references/location.md has the recipe) | ⚠️ Play services shows whether it's geofencing for the app (its location request on the app's behalf, and when that changed), not each geofence's id and radius on current builds; AOSP proximity alerts are counted. Coordinates are never printed | ⚠️ Play services shows whether it's geofencing for the app (its location request on the app's behalf, and when that changed), not each geofence's id and radius on current builds; AOSP proximity alerts are counted. Coordinates are never printed | ❌ iOS doesn't show another process an app's monitored regions: have the app log CLLocationManager.monitoredRegions (count and identifiers) with os_log/NSLog, then looktap logs --grep region (the skill's references/location.md has the recipe) | ⚠️ Play services shows whether it's geofencing for the app (its location request on the app's behalf, and when that changed), not each geofence's id and radius on current builds; AOSP proximity alerts are counted. Coordinates are never printed |
hidekb | ✅ | ✅ | ✅ | ✅ | ⚠️ the watch keyboard closes with its own Done or Cancel: tap one | ✅ |
kill | ✅ | ✅ | ⚠️ am kill ends only a process the system could reclaim; one it couldn't (a foreground service) gets SIGKILL through run-as, so a debuggable build only | ⚠️ am kill ends only a process the system could reclaim; one it couldn't (a foreground service) gets SIGKILL through run-as, so a debuggable build only | ✅ | ⚠️ am kill ends only a process the system could reclaim; one it couldn't (a foreground service) gets SIGKILL through run-as, so a debuggable build only |
location | ✅ | ⚠️ iOS 16 and older only (through the developer image, as Xcode's Simulate Location); a newer iPhone uses its own GPS: use a simulator to fake one | ✅ | ⚠️ Android 12+, through the shell's test providers (gps and network; nothing installed): an app that checks Location.isMock sees it as mock. location clear removes them | ✅ | ⚠️ an emulator: its console's GPS; a watch: Android 12+'s shell test providers (Wear OS 4 and later). A watch paired with a phone may take its location from the phone instead |
location clear | ✅ | ⚠️ iOS 16 and older only (through the developer image, as Xcode's Simulate Location); a newer iPhone uses its own GPS: use a simulator to fake one | ⚠️ removes looktap's test providers (after a route); a point set with location stays, as the emulator keeps its last GPS fix: set another instead | ⚠️ Android 12+, through the shell's test providers (gps and network; nothing installed): an app that checks Location.isMock sees it as mock. location clear removes them | ✅ | ⚠️ an emulator keeps its last GPS fix (set another instead); a watch: the test providers are removed |
logs | ✅ | ⚠️ the phone keeps no history looktap can read: the first logs (or launch) starts collecting its live log in the background, until 30 min after the last one, so what came before that isn't there | ✅ | ✅ | ✅ | ✅ |
logs --clear | ❌ iOS keeps its log: logs mark (or --since) starts from now instead | ❌ iOS keeps its log: logs mark (or --since) starts from now instead | ✅ | ✅ | ❌ iOS keeps its log: logs mark (or --since) starts from now instead | ✅ |
ls | ✅ | ✅ | ✅ | ✅ | ⚠️ a few watch apps (Calculator) draw controls the accessibility tree doesn't list: looktap hit-tests the screen for them, and shot with tapxy covers the rest | ⚠️ an idle watch dims to its always-on face, with nothing to read: commands that act on the screen wake it first (or looktap key WAKEUP) |
network | ❌ the simulator uses the Mac's own network, so it can't go offline or slow by itself. Network Link Conditioner (Xcode → Open Developer Tool → More Developer Tools → Additional Tools) throttles the whole Mac | ❌ turn on Airplane Mode in Control Center | ✅ | ⚠️ airplane mode: over wireless adb, going offline also drops looktap's connection | ❌ the simulator uses the Mac's own network, so it can't go offline or slow by itself. Network Link Conditioner (Xcode → Open Developer Tool → More Developer Tools → Additional Tools) throttles the whole Mac | ✅ |
network <app> | ❌ iOS doesn't count an app's traffic for the Mac to read: Xcode's Network gauge or Instruments' Network template (a simulator's requests also show in a proxy such as Proxyman or Charles) | ❌ iOS doesn't count an app's traffic for the Mac to read: Xcode's Network gauge or Instruments' Network template (a simulator's requests also show in a proxy such as Proxyman or Charles) | ⚠️ bytes and packets each way, and the bursts they came in, sampled from netstats every 2 s: not individual requests | ⚠️ bytes and packets each way, and the bursts they came in, sampled from netstats every 2 s: not individual requests | ❌ iOS doesn't count an app's traffic for the Mac to read: Xcode's Network gauge or Instruments' Network template (a simulator's requests also show in a proxy such as Proxyman or Charles) | ⚠️ bytes and packets each way, and the bursts they came in, sampled from netstats every 2 s: not individual requests |
notifications | ✅ | ⚠️ read off the screen: Notification Center is pulled down for a moment and pushed back up; app names and times are as shown (HEALTH, 2m ago), and there's no push payload; on iOS 16 and older the title and body come as one text | ✅ | ✅ | ❌ the watch keeps notifications where looktap can't read them: push one, then swipe down from the top of the watch face and ls | ✅ |
paste | ✅ | ❌ the phone's clipboard can't be set from the Mac: type works with any text on a device | ✅ | ✅ | ❌ watchOS has no paste | ✅ |
perf | ✅ | ⚠️ read through Instruments (xcrun xctrace): a reading takes 10–25 s and --for gives one every ~8 s; memory is the footprint, without its peak. Not on an iPhone this Xcode doesn't support (iOS 16 and older on Xcode 27) | ✅ | ✅ | ✅ | ✅ |
perf --frames | ⚠️ frames as the screen shows them (the simulator's framebuffer updates), not the app's own render times: the first call starts counting | ⚠️ frames as the screen shows them, from its USB screen feed (60 Hz at most, so a 120 Hz screen counts at half its rate); needs a USB cable, an unlocked phone, and QuickTime not showing it | ✅ | ✅ | ⚠️ frames as the screen shows them (the simulator's framebuffer updates), not the app's own render times: the first call starts counting | ✅ |
permission | ⚠️ camera and notifications can't be set: simctl privacy has no such service | ❌ change it in the Settings app | ⚠️ contacts-limited, reminders and siri are iOS-only; any android.permission.* works | ⚠️ contacts-limited, reminders and siri are iOS-only; any android.permission.* works | ⚠️ camera and notifications can't be set: simctl privacy has no such service | ⚠️ contacts-limited, reminders and siri are iOS-only; any android.permission.* works |
prefs | ⚠️ UserDefaults reach their file a few seconds after the app sets them; an app group's suite lives in the group container (app --paths) | ⚠️ development-signed (get-task-allow) builds only, read over house_arrest as Xcode's Download Container does; needs usbmuxd's way to the phone (USB, or Wi-Fi once paired) | ⚠️ debuggable builds only: SharedPreferences are read through run-as. React Native AsyncStorage and MMKV keep their data elsewhere (a database, their own files) | ⚠️ debuggable builds only: SharedPreferences are read through run-as. React Native AsyncStorage and MMKV keep their data elsewhere (a database, their own files) | ⚠️ UserDefaults reach their file a few seconds after the app sets them; an app group's suite lives in the group container (app --paths) | ⚠️ debuggable builds only: SharedPreferences are read through run-as. React Native AsyncStorage and MMKV keep their data elsewhere (a database, their own files) |
push | ✅ | ❌ send a real push through APNs | ❌ Android pushes come through Firebase (FCM), so adb can't inject one: send it from your backend or the Firebase console | ❌ Android pushes come through Firebase (FCM), so adb can't inject one: send it from your backend or the Firebase console | ✅ | ❌ Android pushes come through Firebase (FCM), so adb can't inject one: send it from your backend or the Firebase console |
record | ✅ | ❌ use burst for frames, or QuickTime Player for video | ⚠️ at most 3 minutes, and FLAG_SECURE screens record black | ⚠️ at most 3 minutes, and FLAG_SECURE screens record black | ✅ | ⚠️ at most 3 minutes, and FLAG_SECURE screens record black |
reset | ✅ | ❌ uninstall and install the app again | ✅ | ✅ | ✅ | ✅ |
reverse | ⚠️ nothing to set up: the simulator shares the Mac's network, so its localhost is the Mac's | ❌ usbmuxd has no reverse port forwarding: the phone reaches this Mac over Wi-Fi, at its IP address (a React Native app: dev menu → Configure Bundler) | ✅ | ✅ | ⚠️ nothing to set up: the simulator shares the Mac's network, so its localhost is the Mac's | ✅ |
rotate | ✅ | ✅ | ⚠️ turned while the home screen is in front, it doesn't last: the next app reopens in the orientation it was last shown in. Turn it with the app in front | ⚠️ turned while the home screen is in front, it doesn't last: the next app reopens in the orientation it was last shown in. Turn it with the app in front | ❌ a watch screen keeps its orientation | ❌ a watch screen keeps its orientation |
route | ⚠️ simctl plays the points at one speed (the route's average): a GPX track's changes of pace are smoothed out | ⚠️ iOS 16 and older only (through the developer image, one fix at a time; iOS works out speed and course from them); a newer iPhone uses its own GPS | ⚠️ Android 12+, through the shell's gps and network test providers (nothing installed). Android 16's shell takes a fix's position, accuracy and time, not its speed or bearing, so apps work those out from the fixes; an app that checks Location.isMock sees them as mock | ⚠️ Android 12+, through the shell's gps and network test providers (nothing installed). Android 16's shell takes a fix's position, accuracy and time, not its speed or bearing, so apps work those out from the fixes; an app that checks Location.isMock sees them as mock | ⚠️ simctl plays the points at one speed (the route's average): a GPX track's changes of pace are smoothed out | ⚠️ Android 12+, through the shell's gps and network test providers (nothing installed). Android 16's shell takes a fix's position, accuracy and time, not its speed or bearing, so apps work those out from the fixes; an app that checks Location.isMock sees them as mock |
runner | ❌ the runner app is for a phone in someone's hand: a simulator is on the Mac already, and looktap live shows what it does | ❌ a real iPhone gets it with its first looktap command: open the looktap runner app on it | ⚠️ Android 10+; installs an app (com.looktap.app), the only command besides wifi --always that does | ⚠️ Android 10+; installs an app (com.looktap.app), the only command besides wifi --always that does | ❌ the runner app is for a phone in someone's hand: a simulator is on the Mac already, and looktap live shows what it does | ❌ the runner app's screen is built for a phone |
shot | ✅ | ✅ | ✅ | ⚠️ FLAG_SECURE screens come out black (emulators bypass it) | ✅ | ✅ |
statusbar | ✅ | ❌ only simulators can override the status bar | ✅ | ✅ | ❌ the simulator can't override a watch's status bar | ✅ |
textsize | ✅ | ❌ change it in Settings → Display & Brightness → Text Size | ✅ | ✅ | ❌ the simulator refuses a text size change: set it on the watch, Settings › Display & Brightness › Text Size | ✅ |
touches | ⚠️ every app started after it's switched on, and the home screen, which is restarted once (closing the apps); a simulator restart switches it off | ⚠️ only an app built with looktap's LooktapTouches.m (one file, Debug builds), started with looktap launch: iOS lets nothing draw over another app. shot --mark draws the pointer on a screenshot of any app | ⚠️ looktap's own touches, in every app (a person's finger: Developer options → Show taps); Android 10+, through the Android helper | ⚠️ looktap's own touches, in every app (a person's finger: Developer options → Show taps); Android 10+, through the Android helper | ❌ the pointer is built for iPhone and iPad simulators: shot --mark draws it on a watch's screenshot | ⚠️ looktap's own touches, drawn as on a phone (Android 10+, Wear OS 3 and later); not yet tried on a watch |
type | ✅ | ✅ | ✅ | ✅ | ⚠️ the watch takes no hardware keyboard: looktap taps its on-screen keyboard's keys, so letters and spaces only, and the keyboard capitalizes and corrects as it does for a person. Open the keyboard first by tapping the field | ✅ |
zoom | ✅ | ⚠️ around the screen's centre only | ⚠️ only through the Android helper (the default): adb input has no multi-touch | ⚠️ only through the Android helper (the default): adb input has no multi-touch | ✅ | ⚠️ only through the Android helper (the default): adb input has no multi-touch |
Options, environment variables, config file
| Option | Meaning |
|---|---|
-p, --platform ios|android | Default: whichever has a booted device. Required when both do |
-d, --device <udid|serial> | Default: the only booted one |
-o, --out <dir> | Folder for screenshots and videos (default shots), and for test's failures/ |
--junit <file> | test: also write a JUnit XML report there |
--wait <seconds> | How long tap, fill, back and expect look for their target (default 3). An ambiguous match fails at once |
--app <id> | App id for launch, stop, open, logs, crashes, app, uninstall, reset and permission |
-h, --help · -v, --version |
| Environment variable | Meaning |
|---|---|
LOOKTAP_PLATFORM, LOOKTAP_DEVICE, LOOKTAP_OUT, LOOKTAP_WAIT | Defaults for -p, -d, -o, --wait |
LOOKTAP_SCALE | Override Android's px-per-dp (normally read from wm density) |
LOOKTAP_ANDROID_HELPER=0 | Plain adb + uiautomator dump instead of the helper (slower) |
LOOKTAP_EMULATOR_GRPC=0 | Don't take emulator frames over gRPC: use the emulator console |
LOOKTAP_IOS_HID=indigo|dtuhid | Force the iOS input path. Takes effect when the helper starts |
LOOKTAP_HOME | Where sockets, logs and state live (default ~/.looktap) |
LOOKTAP_DEBUG=1 | codegen prints each touch it sees: where, on which window, and what was under it |
LOOKTAP_HEADLESS=1 | boot without a window by default (=0: with one). Overrides "headless" in the config file |
Config file. looktap uses the nearest looktap.config.json, walking up from the current folder. Put it at
the root of your app's repo:
{
"out": "shots",
"wait": 3,
"headless": false,
"ios": { "app": "com.example.myapp" },
"android": { "app": "com.example.myapp" }
}
Precedence: command-line option, then environment variable, then config file, then built-in default.
Files looktap writes
| Path | What |
|---|---|
~/.looktap/sim-<udid prefix>.sock, .log | The iOS helper's socket and log |
~/.looktap/helpers.json | Which local port reaches each Android device's helper |
~/.looktap/refs/<device>.json | What @1…@N meant in the last ls on that device |
~/.looktap/marks/<device>.json | Where the last logs / crashes stopped |
~/.looktap/recordings.json | Recordings in progress, so record stop can find them |
~/.looktap/rec-<udid prefix>.log | The iOS recorder's output |
~/.looktap/shots/ | Where the MCP server saves screenshots unless -o / LOOKTAP_OUT / config says otherwise |
/data/local/tmp/looktap-server.jar (device) | The Android helper |
/data/local/tmp/looktap-recording.mp4 (device) | An Android recording in progress, removed when it's copied off |
<out>/<name>.png, <out>/<name>.mp4 | Your screenshots and videos |
Troubleshooting
| Symptom | Fix |
|---|---|
iOS: SimulatorKit not found … / … has no Indigo HID builders | On Xcode 27.1, update looktap (0.7.1 finds SimulatorKit where 27.1 moved it). Otherwise run looktap doctor and point xcode-select at a full Xcode: sudo xcode-select -s /Applications/Xcode.app |
iOS, Xcode 27.1: boot --window shows no simulator | Xcode 27.1 shows simulators in Device Hub, not the Simulator app, one at a time: pick the simulator in Device Hub's sidebar |
iPhone Duo: screenshots are black, or ls misses half the screen | Update looktap to 0.7.2 or later: earlier versions only knew the outer screen, which is off while the Duo is open |
<app> is not installed on this simulator for Maps, Photos… | That runtime ships without it (the iPhone Duo's iOS 27.1 has Safari and Settings). looktap apps --all lists what's there |
this simulator doesn't fold | fold needs a foldable simulator: the iPhone Duo, which comes with Xcode 27.1's iOS 27.1 runtime |
iOS: input unavailable (dtuhid): dtuhidd did not answer | The simulator is still booting, or its input service is restarting. Retry in a few seconds |
iOS: an element you can see is missing from ls | Some containers hide their children from accessibility. looktap probes for them, but tapxy is the fallback |
only the status bar is readable — a system prompt … may be covering the app | A passcode, permission or alert prompt drawn by iOS. looktap shot to see it |
both iOS and Android devices are up — pass -p ios|android | Add -p, or export LOOKTAP_PLATFORM=… |
not found: <label> | Run looktap ls and copy the label. If the screen is slow to load, raise --wait |
"<label>" is ambiguous — matches N labels | Use more of the label, a @ref, or --exact |
"<label>" is ambiguous — "<label>" is in N places | The same label twice on screen (a heading and a tab, say). looktap ls, then tap the one you mean by @ref. A form's label over its own field isn't ambiguous: the field wins |
that's React Native's LogBox toast … dismiss it with looktap tapxy … | A dev build's warning toast blocks taps across the bottom of the screen. Run the tapxy it prints, then tap again. For long sessions, LogBox.ignoreAllLogs() in test builds |
the keyboard leaves no room to scroll | looktap hidekb, then scrollto again |
fill: typed "…", but the field holds "…" | The field limits or reshapes input (a maximum length, a mask), or keeps clearing itself. Check it with looktap ls; type into it with type after a tap |
fill: typed N characters, but the field holds M characters | A password field lost keys even typed one at a time, and the clipboard couldn't be used to paste it. Check the keyboard layout is US, and that no password manager or AutoFill sheet is over the field (looktap ls) |
the simulator's pasteboard won't take the text | Neither simctl pbcopy nor the Mac's clipboard reached it: Xcode's pasteboard sync can get stuck on an old item. type the text instead (fill and code already fall back to typing) |
code: entered …, but the boxes hold … | The boxes reject typed and pasted digits alike, or aren't one row. looktap ls, then tap the first box and type the digits, checking with ls |
no row of code boxes on this screen | code looks for four or more small fields side by side. A code in one field: fill <field> <code> |
<app> exited right after it started | The app crashed at launch. looktap crashes <app> shows the report |
<app> isn't responding / <app> crashed (keeps stopping) | The system's dialog is over the app. looktap crashes <app>, then tap "Wait" or "Close app" and launch it again |
keyboard is still up (iOS) | Search keyboards have no Done key. Tap the screen's Cancel/close control |
Android ls fails right after boot | Wait until adb shell getprop sys.boot_completed prints 1 |
device <serial> is not connected / <serial> isn't connected any more | looktap devices lists what is. A phone unplugged from USB may still be there over Wi-Fi, under its Wi-Fi id (adb-…._adb-tls-connect._tcp); a phone on both is one row, USB + Wi-Fi |
couldn't reach <serial> at <ip> over Wi-Fi / <serial> isn't on Wi-Fi | Put the phone and this computer on the same network. Guest and office networks often keep devices from reaching each other: try a phone hotspot |
found no phone showing a pairing code on this network | Keep Developer options → Wireless debugging → Pair device with pairing code open on the phone, or pass the host:port shown under the code: looktap pair 482913 192.168.1.15:37199 |
<host:port> refused the connection (from connect) | Debugging over Wi-Fi is off on the device, or that isn't its port: turn on Developer options → Debug over Wi-Fi and use the address it shows |
can't reach <host:port> (from connect) | Put the device on the same Wi-Fi as this computer, and wake its screen: a watch turns Wi-Fi down while it's off |
adb can't ("No route to host") (from connect) | macOS keeps the adb server off the local network: allow your terminal in System Settings → Privacy & Security → Local Network, then adb kill-server and connect again |
still waiting for "Allow debugging?" | Wake the device and accept the prompt, ticking "Always allow from this computer" |
adb gets no answer from it (in devices) | The device slept (a watch's Wi-Fi sleeps with its screen) or is overloaded: wake it. When every device is slow to answer, adb itself has stalled: adb kill-server, then reconnect |
pairing with <address> failed | The code changes each time that screen opens: use the one on screen now |
Wireless debugging needs Android 11 or later (from wifi --always) | Older phones can't keep Wi-Fi across a restart: run looktap wifi with the cable in again after each one |
the device is out of storage, so the runner can't be installed | Free some space on the iPhone (Settings → General → iPhone Storage), then run the command again |
perf --frames on a real iPhone reads its screen over the USB cable | Plug the iPhone in with a cable and unlock it: the screen feed it reads doesn't exist over Wi-Fi |
the iPhone's screen feed didn't start | Unlock the phone, and close QuickTime (or anything else showing the phone's screen): one app at a time can read it |
Instruments is busy on the device | An earlier Instruments recording on the phone didn't end (looktap's, Xcode's or another tool's). It clears in a few minutes, or reconnect the cable; restarting the phone always clears it |
Android ls fails after Appium was used | Appium still holds UiAutomation: adb shell am force-stop io.appium.uiautomator2.server |
Appium / uiautomator fail after looktap was used | looktap's helper holds UiAutomation: looktap -p android teardown |
Android helper did not start — falling back to uiautomator dump | Something else holds UiAutomation (see above). looktap keeps working, just slower |
| Android keyboard never appears | Set hw.keyboard = no in the AVD's config.ini, then cold-boot the emulator |
| Android screenshot is black | That screen is FLAG_SECURE: use shot without --plain on an emulator. System PIN and biometric sheets stay black in every mode |
the device is locked: unlock it, then run the command again | Unlock the phone (and on an iPhone keep it unlocked while the runner starts). Commands that need the screen stop rather than act on the lock screen; stop, key wakeup and Android screenshots still work |
| App sits on the splash screen (Android, React Native) | Metro isn't reachable: looktap setup (adds adb reverse tcp:8081), make sure Metro runs, then looktap launch |
launch says no launchable activity | The app isn't installed or the id is wrong: adb shell pm list packages, or xcrun simctl listapps booted |
FAQ
Is this a test framework?
Not a framework, but it runs tests. expect checks the screen, and looktap test runs flow files (plain looktap
commands, one per line) and reports them, with a JUnit report and the evidence of each failure. That covers smoke
tests on every build, bug repros, and flows an agent wrote while building a feature: see
Test flows in CI.
Flow files have no variables, loops or shared setup, and looktap doesn't mock the network or shard across devices. For a large suite that needs those, use XCTest, Espresso, Detox or Maestro.
Does it work on a real iPhone?
Yes. looktap installs a small XCUITest runner on it, signed with your own Apple ID (a free one works). See Using a real iPhone for the one-time setup and what works there.
On Android it works with emulators and with USB-debugging devices. (On a device, screenshots go through the
device, so FLAG_SECURE screens are black.)
Does it install anything on my device or in my app?
Nothing on the iOS simulator. On Android it copies an 8 KB helper to /data/local/tmp and runs it with
app_process, the way scrcpy does. No APK is installed, no app is modified, and there's no SDK to add to your app.
looktap teardown stops the helper.
Does it work with React Native, Flutter, SwiftUI, Compose, web views?
It reads the platform accessibility tree, so anything that exposes accessibility labels works. That includes React
Native (it was built while driving RN apps), SwiftUI, UIKit, Compose and Views. It also reads web content in
Safari, in-app browsers and web views. Flutter isn't tested yet: it exposes elements through its semantics tree,
so it should work wherever that is enabled. Elements without a label show as (no label) and can be tapped by @ref.
Linux or Windows?
iOS needs a Mac. The Android side is plain Node + adb and should work anywhere they do. It's developed and tested
on macOS.
Will an Xcode update break it?
It can. The iOS helper uses private simulator frameworks, like idb does. looktap doctor tells you if something
it needs has moved. Reading the screen and screenshots have held steady. Input changed in Xcode 27, and Xcode 27.1
moved a framework and replaced the Simulator app with Device Hub: looktap 0.7.1 handles both, tested on Xcode 27.1.
Does it handle foldables?
The iPhone Duo simulator (Xcode 27.1), yes: looktap fold closed|half|open folds it the way Device Hub's buttons
do, and ls, taps, screenshots, recordings and rotate follow whichever screen it shows, the outer one closed and
the inner one open. Android foldable emulators aren't supported yet (see the Roadmap).
Can my agent sign in to my app with it?
It can type, but it shouldn't type real credentials. Have a person sign in (and enter OTPs), then let the agent continue. The skill tells agents exactly that. See Safety rules.
With a test-only account it can: fill checks each field holds what it typed (a password by its length), and
code enters a test account's fixed or staging one-time code into its boxes and checks each one. That's also how
to test the sign-in form itself.
Roadmap
- Rotation verified on iPad simulators
foldon Android foldable emulators (the emulator's own fold and unfold)codegenon the iOS simulator, from the Mac's clicks and keys in the Simulator window (a real iPhone gives no way to observe touches)- Android elements by
resource-id(React Native'stestID), as iOS ones already are by accessibility identifier, so flows survive copy changes
Ideas and votes welcome in Issues.
Safety rules
- Never script a sign-in with real credentials, whether from a shell script or an AI agent. A person signs in and enters OTPs, then looktap takes over.
- Never
burstorrecorda sign-in or passcode screen. The frames capture what's typed. The same goes forlooktap liveshared with--host: everyone watching sees it. - Against a live backend, every tap is real. Use the smallest amounts, then undo what you created.
- Logs can contain tokens and personal data. Quote only the lines that matter, and don't commit screenshots of real customer data.
Contributing
git clone https://github.com/lakpriya1s/looktap.git
cd looktap
npm test # unit tests, no device needed
native/ios/build.sh # rebuild the iOS helper (needs Xcode)
native/android/build.sh # rebuild the Android helper (needs the Android SDK + a JDK)
node bin/looktap.js --help # run from source
npm run site:serve # build the website and serve it on http://127.0.0.1:4173
bin/looktap.js CLI: arguments, device selection, commands
lib/ios.js iOS driver: helper client, simctl, logs, crash reports
lib/android.js Android driver: helper client, adb fallback, logcat, exits
lib/screen.js ls rows, @refs, wait, scrollto, settle (platform-neutral)
lib/logs.js logs/crashes windows and formatting
lib/helper.js the JSON-lines socket protocol both helpers speak
lib/emulator.js Android emulator gRPC frames, no dependencies
lib/mcp.js the MCP server (stdio)
lib/png.js · lib/mp4.js · lib/util.js · lib/conditions.js · lib/permissions.js
lib/assets/ built helpers (looktap-sim, looktap-server.jar)
native/ios/ iOS helper source (Objective-C)
native/android/ Android helper source (Java)
skills/looktap/ the AI-agent guide
site/ the website: landing page (site/src) and docs generated from this README,
SKILL.md and BENCHMARK.md (site/build.mjs); published by .github/workflows/pages.yml
Notes for contributors:
- Zero dependencies, on purpose. Use only Node built-ins. The helpers use only what ships with macOS/Xcode and Android.
- Helpers are versioned by content hash. After you rebuild one, the next command replaces the running copy.
Commit the rebuilt file in
lib/assets/. - A new command needs:
- a method on both
IosandAndroid, or, if it only reads the screen, code inlib/screen.js; - a
caseinbin/looktap.js; - a row in this README;
- a line in
skills/looktap/SKILL.mdif agents use it on most runs, else in the fitting file underskills/looktap/references/; - a scene that shows it in
site/src/scenes.js(itscoverslist).npm run site:buildfails until the README row and the scene are there.
- a method on both
Issues and PRs welcome. If looktap saved your agent some tokens, a ⭐ helps others find it.
License
AGPL-3.0 © Lakpriya Senevirathna. You're free to use, modify and self-host it. If you run a modified version as a service for others, you must publish your changes under the same license.
looktap is an independent open-source project, not affiliated with, endorsed by or sponsored by Apple Inc., Google LLC or the Appium project. iOS, iPhone, Xcode and Face ID are trademarks of Apple Inc. Android is a trademark of Google LLC.
@looktap/mcpnpm install @looktap/mcp