Repository navigation
Description
Hi! I contributed the live viewer / WebView-over-CDP work to iphone-control-toolkit (Derrors/iphone-control-toolkit#1) and have just moved my setup (Linux, iPhone 15 on iOS 27.2, source/binary install with the system usbmuxd) over to iphone-control. Thanks for the rewrite: one binary, no Docker shim, and then / iphone_batch already save a lot of round trips.
I've been using the toolkit daily for developing and testing my own apps and want to keep doing that with iphone-control, so I'd like to contribute a few things upstream instead of keeping a fork. Before writing any code I'd like to check that they fit your plans (CONTRIBUTING asks for an issue first). Everything would be split into small PRs, opt-in where it adds a port, and tested on a real device.
1. English as the default language for agent- and user-facing text
Today the tool descriptions, tool results, CLI output and log lines are in Chinese. Agents handle that, but I don't read Chinese, so on my own I can't follow what the agent sees, and I can't read status, doctor, setup or the logs. Right now I have Claude translate everything for me, which works but is slow and makes the tool hard to use, even though I'd really like to. I think many people outside China are in the same position, and it is probably the biggest barrier to adoption.
(Full disclosure: I write and translate with Claude's help, including this issue.)
Proposal: one small message catalog (no heavy i18n framework) with English and Simplified Chinese, chosen by IPHONE_CONTROL_LANG=en|zh (or by the locale). The default is up to you. Code comments stay as they are; new code would be in English, as CONTRIBUTING suggests.
Question: would you accept this, and which default do you prefer?
2. Live screen viewer, served by the daemon
An opt-in iphone-control viewer [--port] that serves a small page on 127.0.0.1: the WDA MJPEG stream plus click → tap, drag → swipe, keyboard → type, and buttons for Home and Lock. It runs through the daemon's existing WDA session, so it doesn't compete with the MCP client, and it has the same loopback/Host-header protections as wda-bridge. It also gives the human a way to watch the agent work in real time.
3. WebView tools (Web Inspector)
Many apps are hybrid (Capacitor, Cordova, React Native WebView) or web pages in Safari. For those, reading the DOM through the Web Inspector service is much faster and much cheaper in tokens than screenshots or the XCUI tree, and it is more accurate. idevice doesn't have a webinspector client yet. The plan: implement one (in a new crate here, or upstream in idevice if jkcoxson wants it), then add
iphone_web_targets: inspectable pages and WebViewsiphone_web_eval: run JavaScript in a target and return JSON- optionally
iphone-control cdp [--port]: an opt-in Chrome DevTools Protocol endpoint, so DevTools and Playwright can attach.
4. Developer tools
These are mostly wiring up services idevice already provides:
iphone_app_logs: os_trace/syslog filtered by process or bundle id, withsinceandgrep, to read crashes and errors without screenshotsiphone_crash_reports: list and fetch crash reportsiphone_install_app/iphone_uninstall_app: install a signed .ipa (installation_proxy)- maybe
iphone_set_location: simulate GPS (DVT)
Would you take these, and do you have preferences on order or scope? I'd start with (1) if you agree, then (2).
Best regards from Germany! 👋
Activity
Derrors commentedon Nov 8, 2026
Thanks a lot for this. All four fit, and splitting them into small PRs is exactly right. Some notes before you start:
1. English UI text: yes, please start here.
IPHONE_CONTROL_LANG=en|zhis fine. The daemon produces the tool results, so it has to read the variable too, not just the CLI. We can reconsider the default later.ictl-protocol(ALERT_BLOCKING,TAP_MISSED). They need to follow the language, or better, become structured fields in the response.status,doctor,setup) → log lines and notifications. Many tests assert on Chinese substrings, so expect to touch those as well.2. Live viewer: yes. Same model as
wda-bridge(opt-in, loopback only, Host check), plus an Origin check on anything that acts. Taps and typing should go through the daemon's request path rather than straight to WDA, so they queue with agent calls and get auto-unlock. Please document that other local users can reach the port.4. Developer tools: yes, before 3. Please put them behind an opt-in switch (for example an env var), so agents that don't need them don't pay for the extra tool descriptions. Mark install/uninstall as destructive, and have uninstall refuse to remove the WebDriverAgent runner.
3. Web Inspector: yes, but last, since it's the largest piece. Starting as a crate in this repo is fine.
Please test every PR thoroughly on a real device, and make sure it has no negative impact on the project's existing performance or stability.
Verified so far on iOS 26/27.0.1 (iPhone 15 Pro Max, iPad mini 5), so your 27.2 results will be useful. Looking forward to the first PR!
feat(mcp): English tool descriptions and server instructions (#29)
feat: English log lines and notifications, docs
feat: English tool results, with outcomes as structured fields (#30)
feat: English log lines and notifications, docs
feat(cli): English CLI output, help, status and doctor (#32)
feat: English log lines and notifications, docs
feat: English log lines and notifications, docs (#33)
feat(cli): opt-in live viewer in the browser
feat(cli): opt-in live viewer in the browser (#34)
feat(mcp): opt-in developer tools for logs, crash reports and installs
feat(mcp): opt-in developer tools for logs, crash reports and installs (
feat: Web Inspector crate and web page tools
feat: Web Inspector crate and web page tools
feat: Web Inspector crate and web page tools (#36)