droidpilot
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DROIDPILOT_HOME | No | Where the run log is kept. | ~/.cache/droidpilot |
| DROIDPILOT_GUARD | No | off turns the safety guard off. | on |
| DROIDPILOT_SERIAL | No | Choose a phone when more than one is connected. | first device |
| DROIDPILOT_VERIFY | No | full checks the screen after each action with screenshots. It is slow (about 5 seconds). | off |
| DROIDPILOT_COMPACT | No | 0 lists every UI element. | 1 |
| DROIDPILOT_SETTLE_MS | No | Wait after each action. | 400 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Controls a real Android phone through touch, like a finger.
Loop: observe, choose ONE action, act, observe again.
observereturns numbered elements and asnapshotid. It also says if the screen changed since the last one.Prefer
tap_text("Add to cart")ortap_element(index, snapshot). Use rawtap(x, y)only when the list is empty (games, web views).Coordinates are in screenshot space. Ask for the image only when the list is not enough:
observe(image=true).Actions do not check the screen. Call
observeto see the result.changed=NOmeans the action did nothing.A result that starts with BLOCKED means the safety guard stopped a buy/pay/send/delete tap. Repeat with confirm=true only if the user asked.
A result that starts with NEEDS_HUMAN means stop and ask the user (lock screen PIN, CAPTCHA, OTP).
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| device_statusA | Show the phone, screen size, rotation, input backend (scrcpy multi-touch or adb fallback) and foreground app. |
| observeA | Numbered UI elements, a snapshot id, app/rotation/keyboard state and whether the screen changed. Call before acting. |
| screenshotA | Screenshot only, without the element list. |
| tap_textA | Tap the element whose label contains |
| tap_elementA | Tap the center of an element from the latest observe. |
| tapC | Single tap at a point. |
| double_tapB | Double tap (zoom in maps/photos, select a word). |
| long_pressB | Press and hold (context menus, drag handles, selection). |
| swipeA | Drag one finger from (x1,y1) to (x2,y2). Short duration = fling, long = precise drag (sliders, reorder). |
| scrollB | Scroll the view. 'down' reveals content below (finger moves up). |
| pinchA | Two-finger pinch centred at (x,y). Needs the scrcpy backend (see device_status). |
| gestureA | Arbitrary multi-finger gesture. All fingers move in lockstep over duration_ms (rotate, three-finger swipe, curves). |
| type_textA | Type into the focused field (tap the field first). Handles non-ASCII via clipboard paste. |
| press_keyC | Press a hardware/navigation key. |
| open_appB | Launch an app by package name. |
| list_appsB | Installed package names (third-party only unless include_system). |
| waitB | Wait until the screen stops changing (loading spinners, animations). |
| wait_forB | Wait until an element with this label appears. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 18 tools
Most tools target clearly distinct capabilities (observe vs screenshot vs wait vs wait_for are well differentiated in descriptions). The tap family (tap, tap_text, tap_element), and the movement family (swipe, scroll, pinch, gesture) are related but descriptions make the boundaries intelligible. An agent can generally pick correctly, though swipe vs scroll and gesture vs pinch require reading the description.
Casing is uniformly lowercase snake_case, but verb style is mixed: verb_noun tools (open_app, list_apps, press_key, type_text, tap_text, tap_element) coexist with bare verbs (tap, swipe, scroll, pinch, observe, wait), nouns (screenshot, gesture) and a noun_phrase (device_status). Still readable, but no single predictable pattern.
18 tools is on the heavy side but each maps to a real mobile-automation capability (observation, touch, gesture, text input, app management, waiting). Nothing is obviously redundant, though a few bare taps could arguably be collapsed. Count is justified by the breadth of the domain.
The surface covers the mobile interaction lifecycle well: observe/status/screenshot for perception, a full touch and gesture set, text/key input, app launch and listing, and both time- and element-based waits. Minor gaps remain: no close/stop app, no element-scoped scroll or swipe (only coordinates), and no text clearing or clipboard retrieval.