/baguette:baguettefrom baguette
Drives iOS simulators via the baguette CLI: taps, swipes, typing, screenshots, accessibility tree inspection, and condition control (location, network, push). Use for automated UI flows, smoke tests, or verifying code changes on a simulator.
Ships in baguette. 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.
Read when SKILL.md points to them.
baguette is a macOS CLI that drives iOS simulators through Apple's private
SimulatorHID (the path Xcode uses internally): faster and more reliable
than idb / AXe / simctl io for input. Agents drive the CLI; a human who
wants to watch or play along should be pointed at baguette serve and
http://localhost:8421/devices/<udid>.
Almost every job is: get a device, read the screen, act, repeat. To test an app
or a flow, use the baguette-test-app skill.
baguette list --json # 1. a booted UDID
baguette boot --udid <UDID> # (if none is running)
baguette describe-ui --udid <UDID> --short # 2. what can be done, and what the screen says
baguette fill --udid <UDID> --label email --text '[email protected]' # 3. put text in a field, and see what it shows
baguette tap --udid <UDID> --label 'Sign In' --then-describe-ui # act by name, and read the new screen
baguette screenshot --udid <UDID> --output /tmp/frame.jpg # 4. look, when you need the pixels
--then-describe-ui waits for the screen to settle, so no sleep, and "changed":false
says nothing moved. Then Read /tmp/frame.jpg. If taps answer {"ok":true} but nothing
happens, run baguette heal --udid <UDID> (Xcode 27's Device Hub took the
input surface; see references/devices.md).
--label takes a name, part of a label, or an identifier, and presses that element
through accessibility, so there's no point to get wrong. A wrong or ambiguous name
taps nothing and says why. With --then-describe-ui, the short answer lists what can
be tapped next. It isn't a real finger: add --touch to test what a user can reach.
Use fill for a field, not tap then type: it clears the field first, takes any
language, and "ok":true means the field shows the text. Use the full describe-ui
only for what the short answer leaves out: screen, frames and roles. Each answer's
affordances gives what you can do next, with the command to run.
Every x / y / startX / endX / x1 / cx … is in device points,
the same units as the width / height passed with it. The centre of a
438×954 screen is x:219, y:478: not 0.5, 0.5 (normalized), not
1206, 2622 (pixels). Take width / height from describe-ui's outer
screen per device, and read it again after a rotation or a fold; its frames
come back in the same units, so an element's centre goes straight into a tap.
Not chrome layout: its screen is the bezel image's, not the device's points.
Read only the reference for the job at hand.
| You want to… | Read | Commands |
|---|---|---|
| get a device booted, sized, rotated, folded; fix input that lands nowhere | references/devices.md | list boot shutdown heal orientation hinge |
| act like a user: touch, drag, press buttons, type, paste | references/interact.md | tap double-tap swipe pinch pan input press type key paste clipboard |
| check what happened: see it, find an element, read logs, record | references/observe.md | screenshot describe-ui logs record stream render-3d |
| set the conditions the app runs under | references/environment.md | location motion network interface status-bar notify shake, camera (WebSocket only) |
| put an app and its data in place, launch it | references/apps.md | install launch add-media openurl schemes defaults |
Two more, generated from the binary by make docs (never edit them here).
references/commands.md has every subcommand, flag and exit code; it's long,
so read one command's section, not the file:
grep -A25 '^## baguette swipe' references/commands.md (subcommands are
### baguette location set). references/wire.md has every JSON gesture for
input and the WebSocket.
One command per gesture is right for a handful of steps, but each one starts a
process: a sign-in takes about 5.1 s that way and 4.1 s in one session. For a form,
a flow of several steps, drags or choreography, open
baguette input --udid <UDID> once and write one JSON gesture per line, reading
one answer per line (references/interact.md). fill works there too. It answers {"type":"describe_ui"} too, so one
session can look and act without paying startup on every call. Either way ok:true means sent, not that the
screen reacted: use --then-describe-ui ("then_describe_ui":true) or a screenshot to check.
type / key are US-ASCII keystrokes. Anything else (accents, CJK, emoji)
goes through baguette paste --text "…".press --button siri is refused: every known path crashes backboardd.motion, network and camera reach only apps launched after they're
armed; relaunch the app once (a later network set or clear needs none).screenshot times out; nudge it with
a tap first.--udid for screen, touches,
describe-ui (~2 s a read) and clipboard; its tap --label lands as a
touch. No buttons, keys, apps or lifecycle: those answer can't do <ability>
(references/devices.md).#!/usr/bin/env bash
set -euo pipefail
UDID="$1"
read W H < <(baguette describe-ui --udid "$UDID" | jq -r '.screen | "\(.width) \(.height)"')
baguette press --udid "$UDID" --button home
sleep 0.4
baguette tap --udid "$UDID" --x $((W * 75 / 100)) --y $((H * 55 / 100)) --width "$W" --height "$H"
sleep 0.5
baguette screenshot --udid "$UDID" --output /tmp/settings.jpg
Resolve the size once and pass it to every gesture. Better than a guessed
position: find the element with baguette describe-ui and tap its centre.
When editing a SwiftUI app: build and run → press --button home and tap
to the changed screen → screenshot and Read it → confirm the pixels
match intent. To let the human follow along, start baguette serve and give
them http://localhost:8421/devices/<udid>; it also takes keyboard
typing, drag-and-drop installs and the feature cards. baguette plugin and
baguette bakery extend that page (see commands.md).
Per-feature guides: https://github.com/tddworks/baguette/blob/main/docs/features/<feature>/README.md.
brew install baguette
baguette --version
Requires Xcode 26 or later on Apple Silicon. If baguette already works, skip
this; don't reinstall on every invocation.
evals/evals.json (opens in a new tab)references/apps.md (opens in a new tab)references/commands.md (opens in a new tab)references/devices.md (opens in a new tab)references/environment.md (opens in a new tab)references/interact.md (opens in a new tab)references/observe.md (opens in a new tab)references/wire.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tddworks/baguette --plugin baguette2 skills in this plugin
Other plugins' skills for the same job