Skip to main content
Glama
droidpilot

droidpilot

by Mihirokte

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DROIDPILOT_HOMENoWhere the run log is kept.~/.cache/droidpilot
DROIDPILOT_GUARDNooff turns the safety guard off.on
DROIDPILOT_SERIALNoChoose a phone when more than one is connected.first device
DROIDPILOT_VERIFYNofull checks the screen after each action with screenshots. It is slow (about 5 seconds).off
DROIDPILOT_COMPACTNo0 lists every UI element.1
DROIDPILOT_SETTLE_MSNoWait 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.

  • observe returns numbered elements and a snapshot id. It also says if the screen changed since the last one.

  • Prefer tap_text("Add to cart") or tap_element(index, snapshot). Use raw tap(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 observe to see the result. changed=NO means 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

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 text. One call instead of observe, read index, tap.

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 18 tools

Disambiguation4/5

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.

Naming Consistency3/5

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.

Tool Count4/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues