ERIUS PHONE
v0.2.0Drive a hosted ERIUS PHONE Android device: read the screen, tap, type, install APKs, get crash logs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_devices List Devices
List every Android device your API key can access, with live status (booted, Android version, screen size). Call this first to get device ids.
whoami Whoami
Show which ERIUS PHONE account (tenant) and key id this server is using, and the device ids it can access. Handy to check the API key works.
get_device Get Device
Get full status of one device: boot state, Android version, screen size, and the app currently in the foreground. Omit `device` to use the default.
| Parameter | Type | Description |
|---|---|---|
device |
snapshot Snapshot
Get an accessibility-tree snapshot of the current screen: every visible element with its text, role, and a `ref` id you can pass to tap/type/scroll. This is how the agent 'sees' the phone — read it before acting, and take a fresh one after any action since refs reset on every snapshot.
| Parameter | Type | Description |
|---|---|---|
device | ||
max_depth | ||
max_nodes |
screenshot Screenshot
Take a screenshot of the device screen right now and return it as an image you can look at, plus one line of text with the image size and the device's real screen size. The default is a JPEG whose longest side is 1024 px (tens of KB). A full-size PNG of a 1440x3120 phone is about 3 MB, which is more than many MCP clients accept in a tool result, so ask for it only when you need it: format="png", max_side=None. `format` is "jpeg", "webp" or "png"; `quality` is 1-100 (jpeg/webp); `max_side` caps the longest side in pixels (64-8192); `scale` (0.1-1) shrinks by a factor instead. When the image i…
| Parameter | Type | Description |
|---|---|---|
device | ||
format | string | |
max_side | ||
quality | integer | |
scale |
foreground Foreground
Get just the foreground app: package, activity, and whether a crash dialog is showing. Cheaper than a full snapshot when you only need this.
| Parameter | Type | Description |
|---|---|---|
device |
tap Tap
Tap an element. Prefer `ref` from a snapshot(), or `text`/`content_desc` to tap by visible label. Falls back to raw `x`,`y` pixel coordinates: in device pixels, or, with `image_width` and `image_height`, in the pixels of a screenshot of that size (the API maps the point to the screen).
| Parameter | Type | Description |
|---|---|---|
content_desc | ||
device | ||
image_height | ||
image_width | ||
ref | ||
text | ||
x | ||
y |
long_press Long Press
Long-press an element (e.g. to open a context menu or start a drag). Targets work like tap(): `ref`, `text`/`content_desc`, or raw `x`,`y` (with `image_width`/`image_height` when they come from a scaled screenshot). `ms` (hold time, default 800) only applies to the x,y form.
| Parameter | Type | Description |
|---|---|---|
content_desc | ||
device | ||
image_height | ||
image_width | ||
ms | ||
ref | ||
text | ||
x | ||
y |
type_text Type Text
Type text into a field. Optionally tap a `ref` or `text_target` label first to focus the field, `clear` the existing value, or press Enter after. Keystrokes sent while the field is still opening are lost, so if tapping the field opens a new screen (e.g. a search page), tap it first, wait for it with snapshot() or wait_for_text(), then type with no target. Check the result with snapshot(). Only printable ASCII is supported (adb limitation).
| Parameter | Type | Description |
|---|---|---|
text * | string | |
clear | boolean | |
device | ||
enter | boolean | |
ref | ||
text_target |
press_key Press Key
Press a hardware/navigation key: back, home, enter, delete, tab, escape, up, down, left, right, space, power, volup, voldown, recent, menu, wakeup.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
device |
swipe Swipe
Swipe from one point to another: in device pixel coordinates, or, with `image_width` and `image_height`, in the pixels of a screenshot of that size.
| Parameter | Type | Description |
|---|---|---|
x1 * | integer | |
x2 * | integer | |
y1 * | integer | |
y2 * | integer | |
device | ||
image_height | ||
image_width | ||
ms | integer |
scroll Scroll
Scroll a list/container up, down, left, or right. `ref` must be the ref of the scrollable container itself (a ScrollView or List line in the snapshot), not of a row inside it: scrolling a single row does nothing. If the container has no ref, use swipe() instead.
| Parameter | Type | Description |
|---|---|---|
direction * | string | |
ref * | string | |
device |
wait_for_text Wait For Text
Wait until `text` appears somewhere on screen (e.g. after a slow screen transition), up to timeout_ms (max 120000). Returns the settled snapshot.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
device | ||
timeout_ms | integer |
launch_app Launch App
Launch an installed app by package name (e.g. com.android.chrome). Pass `activity` only if the app has no launcher activity resolvable automatically.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
activity | ||
device |
open_url Open Url
Open a URL (http/https/market) on the device, optionally forcing it into a specific app package (e.g. open a link in Chrome specifically).
| Parameter | Type | Description |
|---|---|---|
url * | string | |
device | ||
package |
send_intent Send Intent
Start an activity with an arbitrary Android intent (`am start -a ACTION`), e.g. action="android.settings.WIFI_SETTINGS" to jump straight to a settings page. `component` is "package/.Activity"; `extras` values become string, int or boolean extras by their type. Returns ok plus the new foreground app.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
component | ||
data | ||
device | ||
extras | ||
package |
stop_app Stop App
Force-stop a running app by package name.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
device |
list_apps List Apps
List installed apps on the device. Set third_party_only=True to skip pre-installed system apps and see only user-installed ones.
| Parameter | Type | Description |
|---|---|---|
device | ||
third_party_only | boolean |
uninstall_app Uninstall App
Uninstall an app by package name.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
device |
get_crash_log Get Crash Log
Read the device's crash log buffer (logcat -b crash) — use this after an app crashes during QA testing to see the real stack trace.
| Parameter | Type | Description |
|---|---|---|
device | ||
lines | integer |
install_apk Install Apk
Install an APK from a local file path on the machine running this MCP server (not on the phone) onto the device. Use this for APK QA testing — the real use case ERIUS PHONE is built for. Returns the parsed package info (name, version) and whether the install actually succeeded.
| Parameter | Type | Description |
|---|---|---|
apk_path * | string | |
allow_downgrade | boolean | |
device | ||
grant_permissions | boolean |