/esp32agent:maninafrom ESP32 Agent (Manina AI)
Controls a real iPhone via an ESP32 Agent board using the esp32agent CLI or MCP server. Enables looking at, tapping, swiping, typing on, and testing iOS apps on a physical device.
Ships in ESP32 Agent (Manina AI). Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
An ESP32 Agent board (Manina AI) acts as the iPhone's mouse and keyboard: plugged into a USB-C iPhone (USB mode),
or as its Bluetooth mouse and keyboard on any USB power (Bluetooth mode; Lightning iPhones XS to 14 need it). The
mode is set in the iOS app (Settings > Board > Input); the CLI cannot switch it. It also receives the iPhone's AirPlay screen mirroring. Your computer reaches
the board over Bluetooth with the esp32agent command line tool, which is also an MCP server. No jailbreak is
needed.
iPhone only for now. iPad support is coming soon.
npx), and ffmpeg (needed for screenshots).Nothing to install up front; npx fetches the CLI:
npx -y esp32agent version
Or install it globally with npm install -g esp32agent and call esp32agent directly. The examples below use
npx -y esp32agent; with a global install, drop the npx -y.
MCP server (stdio), if your agent does not already have it from this plugin:
claude mcp add esp32agent -- npx -y esp32agent mcp
Other MCP clients:
{ "mcpServers": { "esp32agent": { "command": "npx", "args": ["-y", "esp32agent", "mcp"] } } }
npx -y esp32agent pair. In Bluetooth mode, pair the board on the iPhone in the same window (Settings >
Accessibility > Touch > AssistiveTouch > Devices > Bluetooth Devices); missed it, replug the board's power.npx -y esp32agent screenshot should now save a PNG of the phone's screen.npx -y esp32agent calibrate measures the pointer. It also runs by itself before the earliest tap. It needs
the pointer visible on screen.| Tool | What it does |
|---|---|
screenshot | The screen now, after the last action settled. Other tools take pixel coordinates of this image |
tap | Tap at x, y; count: 2 double-taps |
longpress | Press and hold at x, y (duration_ms, default 1000) |
swipe | Swipe from x1, y1 to x2, y2 |
type_text | Type into the focused field (ASCII; Chinese is typed as pinyin) |
press_key | enter, esc, tab, backspace, space, arrows, cmd+a, shift+tab ... |
press_button | HOME only (go to the Home Screen) |
device_info | Board status: mirroring (ap), video frozen (fz), app busy (busy), usb, ble; in Bluetooth mode hid (ok/off) |
history | action: list (recent runs) or show (one run's steps with their screenshots) |
intent_list, intent_show, intent_save | Saved tasks: list, show one, save what worked |
Every tool takes an optional device (board id) when more than one board is nearby.
Every command prints JSON: {"status":"ok","data":...} or {"status":"error","error":"..."} (exit code 1).
| Command | What it does |
|---|---|
devices | Boards nearby (id, paired, connected) |
pair, unpair | Pair this computer with the board; forget it here |
screenshot [--format png|jpeg] [--quality N] [--scale F] [--max-size N] [--output PATH|DIR/|-] | Save the screen; prints filePath |
io tap X,Y [--aim] [--count N] | Tap; --aim finds the pointer and corrects before tapping |
io longpress X,Y [--duration MS] | Press and hold |
io swipe X1,Y1,X2,Y2 | Swipe |
io text 'TEXT' | Type ASCII text |
io keys COMBO | Press a key or combo |
io button HOME | Home Screen |
device info | Board status |
calibrate | Measure the pointer |
history list, history show RUN|latest, history new | What was done on the phone; start a new run |
intent list, intent show NAME, intent save ..., intent delete NAME | Saved tasks |
intent export NAME [--screenshots] [--output FILE], intent import FILE | Move saved tasks to and from the iOS app |
upgrade [--check], version | Update the CLI; print its version |
mcp | Run the MCP server on stdio |
With several boards nearby pass --device <id> or set ESP32AGENT_DEVICE.
screenshot tool, or esp32agent screenshot and read the PNG at filePath).
It waits until the screen has settled after your last action.--scale or
--max-size, convert the coordinates back to full size.Tips:
enter.io tap X,Y --aim.cmd+a then backspace clears it. In Bluetooth mode, whether
iOS takes modifier combos from the board is being verified: screenshot after one, and if nothing changed, select
the text with a long press (Select All) and press backspace.io text '拿铁' types natie). With the Chinese pinyin keyboard active, press
space to accept the top candidate, or screenshot and tap the right one.After a task succeeds, save it so the next run is faster:
history show latest (MCP history, action show) lists the run's numbered steps in 0-1000 screen units.intent save --name 'Alarm 7:00' --prompt 'Set an alarm for 7:00 AM every day' --hint 'Type the time' --from-run RUN --steps 2,3,5
(MCP intent_save). Keep the prompt short and use at most 6 hints.To reuse one, intent show NAME, convert its 0-1000 coordinates to pixels (x * width / 1000,
y * height / 1000), and check each screen against the step's reference screen. If the screen looks different,
drop the recorded steps and continue with the normal loop.
You are using a real phone with the owner's accounts, money and contacts.
| Error or symptom | What to do |
|---|---|
not paired, pairing window closed | Replug the board (its power, in Bluetooth mode) and run pair within 3 minutes |
screen mirroring is off | Ask the user to start Screen Mirroring to ESP32 Agent |
video frozen | Ask the user to stop and restart Screen Mirroring |
phone usb asleep | USB mode: the phone is locked; ask the user to unlock it |
Bluetooth HID not paired, typed N of M: asleep | Bluetooth mode: the phone's Bluetooth link to the board is down. Check Bluetooth is on and the board shows Connected; if the phone never paired it, replug the board's power and pair within 3 minutes |
busy: the app is using the phone | The ESP32 Agent iOS app is driving the phone. Wait and retry later |
no cli service (firmware too old?) | Update the board firmware to v0.2.2 or later at https://manina.ai/install |
not supported on ESP32 Agent | There is no app list, UI tree or file access; work from screenshots |
| Taps land off target | Make sure AssistiveTouch is on and the pointer is visible, run calibrate, or use io tap --aim |
| Screenshot fails | Check that ffmpeg is installed and Screen Mirroring is on |
Limits: screenshots can be up to about a second behind and animations look choppy. Typing is ASCII only, one key per character. HOME is the only button (in Bluetooth mode it goes Home with Cmd+H or the swipe up from the home bar, which needs Screen Mirroring on): no volume or power buttons, and no installing or launching apps directly.
Help: [email protected] · https://manina.ai
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
iphone-control, esp32, hardware-testing, ios-testing, device-automation
npx claudepluginhub onehumanbeing/esp32-iphone-agent --plugin esp32agentOther plugins' skills for the same job