AgenMobi v0.2.11 is open source: control a wall of Android phones and iPhones from one Mac.

Install Guide

MCP Server, A2A 1.0 Agent Card & Local HTTP API

Three local-first integration layers over one hardware-bound device registry: stdio MCP for direct vision-tap loops, A2A 1.0 for skill delegation, and localhost HTTP for idempotent automation.

1. Interactive MCP Tool & Error Contract Explorer

Filter all 21 registered MCP tools and structured error hints exported by src/mcp/bridge.mjs.

Tool NameParametersBehavior
list_devicesnoneReturns hardware-bound persistent deviceId, name, model, platform, osVersion, connection (usb/wifi), aiAvailable, and unavailableReason.
list_accountsplatform?, deviceId?Lists registered social accounts (25 platforms) and their bound phone deviceId plus Android packageName.
get_screendeviceId, maxSize?Returns PNG screenshot (default max 1568px / 1.15M px, or 256–4096), single-use snapshotId (60s TTL), scale, and rotation.
list_appsdeviceIdLists launchable application package names or iOS bundle IDs, flagging user-installed apps.
launch_appdeviceId, packageNameLaunches an app by packageName or bundle ID and acquires the current session lock.
tapdeviceId, snapshotId, x, ySingle tap using pixel coordinates from the screenshot (auto-mapped to physical resolution & rotation). Consumes snapshotId.
long_pressdeviceId, snapshotId, x, y, durationMs?Press and hold at (x, y) for 300–3000ms (default 800ms). Consumes snapshotId.
swipedeviceId, snapshotId, fromX, fromY, toX, toY, durationMs?Touch drag gesture across screenshot coordinates (80–3000ms, default 300ms). Consumes snapshotId.
type_textdeviceId, text, snapshotId?Pastes UTF-8 / Chinese text directly into the focused input field via scrcpy clipboard channel without auto-Enter.
press_keydeviceId, key, snapshotId?Sends allowlisted hardware keys: HOME, BACK, ENTER, RECENTS, DELETE.
list_workflowsnoneLists saved workflows including instructions, flowchart steps, {{variables}}, approval settings, and defaultDevices.
run_workflowworkflow, deviceIds?, accountIds?, message?, variables?, files?, urls?, requestId?, callbackUrl?Triggers a workflow with Mac local files/URLs and idempotent requestId; returns queued runIds immediately.
get_workflow_runrunIdReads run status, generated plan, step progress, answers, result screenshot, or pending confirmation card.
respond_workflow_runrunId, answer | approved, interactionId?, revision?, replyId?Answers an AI clarification question or approves/rejects an execution plan (requires opt-in externalApproval).
resume_workflow_runrunIdResumes a run after the user resolves an action card directly on the physical phone.
list_workflow_run_eventsrunId, afterSeq?Fetches persistent run events and webhook delivery state incrementally by sequence number.
list_workflow_runsworkflow?, deviceId?, limit?Lists recent workflow executions, newest first.
cancel_workflow_runrunIdStops an active or queued workflow run.
submit_publish_taskrequestId, deviceId, platform, account, packageName, content, instructions, files?Submits a structured publishing task to the built-in publish agent for a single idle Android device.
get_publish_tasktaskIdPolls publish task status including blocked or unknown verification states.
cancel_publish_tasktaskIdCancels an active publish task.

2. Coordinate Scaling & Snapshot Lifecycle

By default, get_screen scales screenshots so the long edge stays within 1568px (≤1.15M total pixels), preventing vision models from downscaling large images and drifting coordinates. Need to read tiny text? Pass maxSize between 256–4096.

Agents always emit coordinates in the exact screenshot pixel space returned by get_screen (top-left origin). AgenMobi handles physical device resolution and current screen rotation (0, 90, 180, 270) automatically.

  • TTL: 60 seconds per snapshotId.
  • Single-Use: One tap, swipe, or long_press invalidates the snapshot.
  • Multi-Phone Concurrency: Different phones run in parallel; actions on the same phone serialize safely.
AgenMobi MCP snapshotId and manual takeover write-gate flow
MCP Write-Gate: snapshotId -> tap -> Manual Takeover -> 10s human lock.
Session isolation stops stale clicks after rotation, disconnect, or human takeover.

3. A2A 1.0 Discovery & Local HTTP API Reference

Enable the local HTTP interface in Settings -> External Clients. It binds exclusively to http://127.0.0.1:47380 and stores only a cryptographic hash of your Bearer token.

Copied from Settings -> External Clients. Runs over stdio with hardware-bound deviceId.

{
  "mcpServers": {
    "agenmobi": {
      "command": "/opt/homebrew/bin/node",
      "args": ["/Applications/AgenMobi.app/Contents/Resources/app/src/mcp/index.mjs"],
      "env": {
        "AGENMOBI_RENDEZVOUS": "/Users/you/Library/Application Support/AgenMobi/mcp-socket"
      }
    }
  }
}
EndpointPurpose & Parameters
GET /.well-known/agent-card.jsonPublic A2A 1.0 Agent Card (no token exposed). Also readable as MCP resource agenmobi://agent-card.
GET /v1/workflows · GET /v1/devicesList saved workflows, persistent deviceIds, and bound accountIds.
POST /v1/workflows/{id}/runsTrigger runs with deviceIds, accountIds, files (Mac paths), attachments (≤45 MB base64), urls, requestId (UUID), and callbackUrl.
GET /v1/runs/{runId}Inspect run status, plan, step logs, and verifiable pre-publish screenshot refs.
POST /v1/runs/{runId}/respondReply with {"answer":"..."} to ask_user clarification cards or {"approved":true/false} when external approval is enabled.
POST /v1/runs/{runId}/cancelCancel an active or queued workflow run immediately.
Explore AI Workflows EngineInstall & Connect Client