DEV Community

Phonebox
Phonebox

Posted on Originally published at phonebox.dev

One flag. 34 tools. Tested live before we shipped.

December 3, 2026

Your agent can now tap, swipe and scroll with human-like input — one opt-in flag, off by default so every existing gesture stays exact — give a parked phone a new device identity without wiping the apps, files and accounts already on it, and drive the whole phone through 34 tools on the hosted MCP server. We tested it end-to-end on live cloud phones before launch.

Set the flag. Keep the work on the phone. Drive it from wherever your agent already lives.

The contract is the product

Agents that drive a phone should not have to become experts in gesture kinematics. They should set a flag.

humanize is optional, and it is off by default, so every tap, swipe and scroll you already run stays exact until you ask for something else. When you do, you pass one boolean. That's it. The same flag on REST, the TypeScript SDK, the CLI (--humanize), Python, and the act tool on the hosted MCP server at phonebox.dev/mcp.

The allowlist is deliberate: tap, double_tap, swipe, and scroll. Long press stays exact — the field isn't on that action, and the API returns 400 if you send it. Enforced in the schema, covered by tests, confirmed live.

The human-like input mode was chosen after the founder's hands-on benchmarking and research.

When the flag is on, and the phone supports it, the gesture lands a few pixels off, follows a slightly curved path with a little jitter, and takes a human-like time. A phone that can't still runs the gesture as asked. Humanize makes no difference to what a gesture does, only to how it looks to the app. humanize: true turns on human-like input the phone already supports, behind a contract you can trust: opt-in, identical everywhere, and documented in plain language.

One flag, five surfaces

The same option, everywhere an agent already acts.

REST

curl https://phonebox.dev/v1/phones/ph_7kx2m6q4v3ta/actions \
  -H "Authorization: Bearer $PHONEBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"actions":[{"type":"tap","target":{"text":"Sign in"},"humanize":true},{"type":"swipe","from":{"x":540,"y":1700},"to":{"x":540,"y":700},"duration_ms":400,"humanize":true},{"type":"scroll","direction":"down","humanize":true}]}'
Enter fullscreen mode Exit fullscreen mode

double_tap takes the same "humanize": true field. A double_tap is two taps 80 ms apart; when the flag is on, both are human-like.

TypeScript SDK

Install from phonebox.dev/downloads/phonebox-0.1.0.tgz. The SDK takes the option as humanize: true.

import { Phonebox } from "phonebox";

const pb = new Phonebox(); // reads PHONEBOX_API_KEY
const phone = await pb.phones.get("ph_7kx2m6q4v3ta");
if (phone.status !== "ready") await phone.waitUntil("ready");

await phone.tap({ text: "Sign in" }, { humanize: true });
await phone.tap({ text: "Open" }, { double: true, humanize: true });
await phone.swipe({ x: 540, y: 1700 }, { x: 540, y: 700 }, 400, { humanize: true });
await phone.scroll("down", { humanize: true });
Enter fullscreen mode Exit fullscreen mode

CLI

phonebox tap ph_7kx2m6q4v3ta --text "Sign in" --humanize
phonebox tap ph_7kx2m6q4v3ta --text "Open" --double --humanize
phonebox swipe ph_7kx2m6q4v3ta 540 1700 540 700 --ms 400 --humanize
phonebox scroll ph_7kx2m6q4v3ta down --humanize
Enter fullscreen mode Exit fullscreen mode

Python

from phonebox_sdk import Phonebox

pb = Phonebox()  # reads PHONEBOX_API_KEY
pb.phones.tap("ph_7kx2m6q4v3ta", {"text": "Sign in"}, humanize=True)
Enter fullscreen mode Exit fullscreen mode

Swipe and scroll take humanize too, through act. The hosted MCP act tool accepts the same field on the same four actions. One flag. Five surfaces. No special case for whichever way your agent talks to the phone.

Write once. Never again.

Reliability you can build on: every identity reset, full reset and reboot is sent once. If the outcome is unknown, the API tells you, and it never retries the write. Your agent looks at the screen and decides what to do next.

The same rule already covers taps and installs. When a write may or may not have happened, the API says action_outcome_unknown. That result is never marked retryable. You look at the screen before you act again.

Identity reset is how you keep going past the demo. POST /v1/phones/{id}/reset with mode: "identity" keeps the apps, files and accounts already on the phone, clears the clipboard, and can assign new device info such as the model or screen, though a change is not guaranteed. If you pass preserve, only the named settings — location, locale, timezone — are put back. If an app tied the account to the previous device, it may ask you to sign in again. A full reset still wipes everything when you want a clean phone.

You need an Admin key (phones:delete). The request returns 202, the phone starts, and you wait until it is ready. The session stays open and is billed. The API is explicit about conflicts: 409 if the phone is already starting, 429 if you try again within a minute, 502 action_outcome_unknown if you should wait and never send a second reset, 422 if identity reset isn't available on that phone.

On MCP, reset_phone takes an explicit mode — there is no default — and confirm: true. MCP has no delete-phone tool.

Identity reset, SDK

import { Phonebox } from "phonebox";

const pb = new Phonebox(); // Admin key in PHONEBOX_API_KEY
const phone = await pb.phones.get("ph_7kx2m6q4v3ta");

const result = await phone.reset({
  mode: "identity",
  preserve: ["location", "locale", "timezone"],
});
// result.wiped is empty for an identity reset; apps, files and accounts stay.
await phone.waitUntil("ready");
Enter fullscreen mode Exit fullscreen mode

reset() returns without waiting. Always follow it with waitUntil("ready"). A full reset is still the default: await phone.reset() wipes apps, files, accounts, and the clipboard.

CLI

phonebox reset ph_7kx2m6q4v3ta --yes --mode identity --preserve location,locale,timezone
Enter fullscreen mode Exit fullscreen mode

--yes is required. The command waits until the phone is ready unless you pass --no-wait.

Tested live before we shipped.

We tested it end-to-end on live cloud phones before launch:

  • Humanized tap, swipe, and scroll worked.
  • A plain swipe was unchanged.
  • long_press plus humanize returned 400.
  • After an identity reset, humanize still worked.

The contract held on live phones: exact gestures stayed exact, humanized gestures ran, a long press with the flag came back 400, and humanize still worked after an identity reset. Then we shipped.

34 tools. Each one is one call.

The hosted MCP server gives your agent 34 tools for cloud Android phones: start, read the screen, act, move files, record, and park. Each tool is one /v1 call, so scopes, limits, billing, and the activity log are identical to REST. File caps over MCP are 1 MiB to pull and 256 KiB to push. get_recording_link mints a time-limited URL — 900 seconds by default, 60 to 3600 if you say so — and needs phones:control. The download itself does not need a key.

Destructive work stays explicit. uninstall_app and reset_phone take confirm: true. MCP has no delete-phone tool. The MCP registry listing is dev.phonebox/phonebox v0.3.0.

This is the same philosophy as humanize: one surface, one contract, no surprise retries, no hidden side channels.

The phone is still yours when you park it

Park a phone and it keeps its apps, files and signed-in accounts — and costs nothing until you start it again. Identity reset rotates device identity and leaves that work in place. Full reset is there when you want a wipe.

Coming soon from Phonebox Labs

Coming soon from Phonebox Labs: a benchmark of path and timing variance, humanized against plain.

Keep your existing gestures exact. When you want human-like input, set the flag. Reset identity when you need a fresh device identity and want to keep the rest. Drive the phone from REST, from the SDK, from the CLI, from Python, or from all 34 MCP tools.

Create an account. See pricing. Add the hosted MCP server at phonebox.dev/mcp.

Further reading

Top comments (0)