phone-harness-mcp

v0.1.0
phone-harness-mcp Checked 5 hours ago Published 1 month ago

Connect AI agents to real iPhones and Androids

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

phone_list_available_devices List phones

List the phones running on this account, whose ids the other tools take as `device`, and the phones the account can start.

phone_start_device Start a phone

Start a phone and wait until it is ready; returns its device id. With nothing named, the account's default phone (a temporary Android emulator) starts. `platform` and `kind` go together (android/emulator, or ios/device for the account's own iPhone). `device_id` is an id from phone_list_available_devices: a particular iPhone, or the account's saved Android phone (apps and logins kept between sessions). A rented phone bills the account by the minute for up to `minutes` (default 30), so stop it with phone_stop_device when done.

ParameterTypeDescription
device_id
kind
minutesinteger
platform

phone_stop_device Stop a phone

End a running phone session so it stops billing. Anything not saved on the phone is lost.

ParameterTypeDescription
device *string

phone_get_screen_size Screen size

The phone's screen size in the coordinate space the tap and swipe tools use.

ParameterTypeDescription
device *string

phone_take_screenshot Take a screenshot

Take a screenshot of the phone. Use it to understand what is on screen when the text list is not enough. The image is usually smaller than the screen; the text before it says how to convert a point you see into screen coordinates. Do not reuse an old screenshot: the screen changes.

ParameterTypeDescription
device *string
max_sizeinteger
scale

phone_save_screenshot Save a screenshot

Save a screenshot to a file on this machine: PNG when the name ends in .png, else JPEG. Full size unless `max_size` or `scale` says otherwise.

ParameterTypeDescription
device *string
save_to *string
max_size
scale

phone_list_elements_on_screen List what is on screen

List the text visible on screen with the center of each piece, ready to tap with phone_click_on_screen_at_coordinates. On Android the positions come from the accessibility tree; on an iPhone from reading the pixels. Call it again after the screen changes.

ParameterTypeDescription
device *string
formatstring

phone_click_on_screen_at_coordinates Tap

Tap the screen at (x, y) in screen coordinates, such as a center from phone_list_elements_on_screen.

ParameterTypeDescription
device *string
x *number
y *number

phone_long_press_on_screen_at_coordinates Long press

Press and hold at (x, y) in screen coordinates for `duration` milliseconds (default 800).

ParameterTypeDescription
device *string
x *number
y *number
durationinteger

phone_swipe_on_screen Swipe

Swipe in a direction: the way the finger moves, so "up" reveals what is below. Starts at (x, y), or the screen center, and travels `distance` pixels (default 40% of the screen).

ParameterTypeDescription
device *string
direction *string
distance
x
y

phone_type_keys Type text

Type text into the focused field. Tap the field first so the keyboard is up; text sent with nothing focused goes nowhere. `submit` presses Enter afterwards.

ParameterTypeDescription
device *string
text *string
submitboolean

phone_press_button Press a button

Press a system button: HOME, BACK (Android; an iPhone has none), APP_SWITCHER, or ENTER.

ParameterTypeDescription
button *string
device *string

phone_list_apps List apps

List the apps installed on the phone: package ids on Android, bundle ids on an iPhone. Any of them can be passed to phone_launch_app.

ParameterTypeDescription
device *string

phone_launch_app Launch an app

Open an app by the name on its icon ("Settings", "Notes", "Chrome") or, on Android, its package id.

ParameterTypeDescription
device *string
name *string

phone_get_foreground_app Foreground app

Which app is in front right now. Not every phone reports it; then take a screenshot instead.

ParameterTypeDescription
device *string