Expo Agent Bridge
v0.3.2Let AI agents see, tap, type, scroll, screenshot and debug your Expo app on a real phone.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
app_status
Check whether the mobile app is connected and show device info. Call first.
app_snapshot
Compact text outline of the current screen (buttons, inputs, text, lists) with refs like [e3] to act on. Prefer this over screenshots.
| Parameter | Type | Description |
|---|---|---|
maxLines | integer | default 400 |
app_layout
Positions (dp, window coordinates) and font sizes of elements on the current screen. For layout checks and visual work; app_snapshot is cheaper for acting.
| Parameter | Type | Description |
|---|---|---|
limit | integer | max elements, default 250 |
app_screenshot
JPEG screenshot of the app. Use only for visual/layout questions; app_snapshot is cheaper for finding elements. With saveTo, writes the file and returns only its path (no image tokens).
| Parameter | Type | Description |
|---|---|---|
area | string | auto (default) = visible screen; window = whole window incl. overlays |
fullScroll | boolean | capture the whole content of the main scroll view as one tall image |
maxWidth | integer | pixels, default 400 |
quality | number | 0-1, default 0.6 |
saveTo | string | file path (.jpg) to save instead of returning the image |
app_batch
Run several actions in one call (fastest way to fill forms or walk a flow). Returns the screen once at the end. Steps: {action:"tap"|"type"|"scroll"|"toggle"|"navigate"|"wait"|"dismiss_keyboard", ...that tool's args}.
| Parameter | Type | Description |
|---|---|---|
steps * | array | |
full | boolean | full screen instead of a diff |
snapshot | boolean | report the screen afterwards (default true) |
app_tap
Press a button/pressable element. Returns what changed on screen plus any new errors.
| Parameter | Type | Description |
|---|---|---|
full | boolean | full screen instead of a diff |
long | boolean | long press |
ref | string | ref from the last snapshot, e.g. "e4" |
snapshot | boolean | report the screen afterwards (default true) |
testID | string | testID prop of the element |
text | string | visible label/placeholder (exact match first, then contains) |
app_type
Set text in an input (replaces by default). Target by ref, testID, or placeholder text.
| Parameter | Type | Description |
|---|---|---|
value * | string | |
append | boolean | |
full | boolean | full screen instead of a diff |
ref | string | ref from the last snapshot, e.g. "e4" |
snapshot | boolean | report the screen afterwards (default true) |
submit | boolean | fire onSubmitEditing (like pressing enter) |
testID | string | testID prop of the element |
text | string | visible label/placeholder (exact match first, then contains) |
app_scroll
Scroll a list/ScrollView (first one on screen if no target).
| Parameter | Type | Description |
|---|---|---|
amount | number | pixels, default ~70% of screen |
direction | string | |
full | boolean | full screen instead of a diff |
ref | string | ref from the last snapshot, e.g. "e4" |
snapshot | boolean | report the screen afterwards (default true) |
testID | string | testID prop of the element |
text | string | visible label/placeholder (exact match first, then contains) |
app_toggle
Flip a Switch (or set it with value).
| Parameter | Type | Description |
|---|---|---|
full | boolean | full screen instead of a diff |
ref | string | ref from the last snapshot, e.g. "e4" |
snapshot | boolean | report the screen afterwards (default true) |
testID | string | testID prop of the element |
text | string | visible label/placeholder (exact match first, then contains) |
value | boolean |
app_wait
Wait until text or a testID appears (or disappears with gone=true). Cheaper than polling snapshots.
| Parameter | Type | Description |
|---|---|---|
gone | boolean | |
testID | string | |
text | string | |
timeout | integer | ms, default 5000, max 30000 |
app_logs
Console logs and JS errors captured in the app.
| Parameter | Type | Description |
|---|---|---|
clear | boolean | |
level | string | "error" = errors only, "warn" = warnings and errors |
limit | integer | default 50 |
search | string | |
since | integer | only entries after this cursor (returned as "cursor") |
app_network
HTTP requests made by the app (fetch/XHR) with status, timing and truncated bodies.
| Parameter | Type | Description |
|---|---|---|
bodies | boolean | include request/response bodies (default false) |
failedOnly | boolean | |
limit | integer | default 30 |
search | string | substring of URL |
since | integer |
app_eval
Run JavaScript inside the app (dev only) and return the JSON result. Expression or statements with return. `bridge` and `RN` (react-native) are in scope.
| Parameter | Type | Description |
|---|---|---|
code * | string |
app_reload
Reload the JS bundle (like pressing r in Metro).
app_dismiss_keyboard
Hide the on-screen keyboard.
device_key
Press a hardware/system key on an Android device via adb (USB or Wi-Fi debugging): volume_up, volume_down, mute, back, home, app_switch, enter, tab, delete, power, menu, escape.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
repeat | integer |