Live view: a person takes over the phone.
Phone archive. This guide describes the former Android phone service. For the current product, see the sandbox docs.
Some steps only a person can do: sign in to an app, enter a code, approve a prompt. Make a link, give it to your user, and they see the phone's screen in their browser and use it. When they press Done, the link ends and your agent goes on.
A takeover link gives whoever holds it full control of the
phone, including every app that is signed in on it, until it expires
or is ended. Share it only with the person who must sign in.
A link is view-only unless you ask for control: true.
How it works
-
Your agent calls
create_live_link(orPOST /v1/phones/{id}/live) and gets a link. - It gives the link to your user. Nobody else should get it.
- Your user opens the link on a phone or a computer. They see the screen, tap or drag on it, and type in a text box. Back and Home buttons are on the page.
- Your user presses Done - hand back to the agent. The link ends at once. The agent reads the screen and continues.
API
curl -sS -X POST https://helicopter.dev/v1/phones/$PHONE_ID/live -H "Authorization: Bearer $PHONECLOUD_API_KEY" -H "Content-Type: application/json" -d '{"control":true,"ttl_minutes":15}'
# {"id":"0123456789abcdef","phone":"...","url":"https://helicopter.dev/live#lv_...","control":true,"ttl_minutes":15,"expires_at":1762700900.0}
# End every link of the phone (the person's Done button ends only their own).
curl -sS -X DELETE https://helicopter.dev/v1/phones/$PHONE_ID/live -H "Authorization: Bearer $PHONECLOUD_API_KEY"| Route | What it does |
|---|---|
POST /v1/phones/{id}/live |
Make a link. Optional body: control (false by
default, which is view-only; send true for a takeover link) and
ttl_minutes (1 to 60, 15 by default). The token is only in url, after
the #, and is shown once.
|
GET /v1/phones/{id}/live |
List the phone's active links: id, control, times. No tokens. |
DELETE /v1/phones/{id}/live |
End all the phone's links. DELETE .../live/{link id} ends one. |
create_live_link, end_live_links |
The same two actions as MCP tools. |
Errors: 409 phone asleep (a link never wakes a phone; wake
it first), 429 live link limit reached (3 links for a
phone, 10 for an account), 429 rate limited,
404 not found.
Security
- The link carries a random 256-bit token. It is bound to one phone of one account, it expires (at most 60 minutes), and you can end it at any time. It also ends when the phone is deleted, put to sleep or restored. The server keeps only a hash of the token, in memory.
-
The token is in the part of the address after
#, which a browser does not send to any server. The page removes it from the address bar, keeps it in memory, and sends it in a header, never in a path, a query or a cookie. It is not in our access logs. For this reason a reload of the page does not work: open the link again. - The page never holds your API key, and the link cannot be used on any other route. A view-only link cannot send any input.
-
Text a person types is passed to the phone and is never written to
a log, the audit log or a recording. We log only "text input, N
chars". On the server that runs the phone, the text is in the
argument list of the
adb shell input textcommand while it runs, the same as fortype_text. Creating, opening and ending a link are logged with the account, the phone, the time and the client address, and no content. -
Pictures of the screen are sent with
Cache-Control: no-store. A link works only while the phone exists and is awake. -
Anyone who has the link can see the screen, and with
control, use the phone, until it ends. Treat it like a password.
What it is not (yet)
- It is a stream of screenshots, not video. The page asks for a new picture at most about 4 times a second, and less when the screen does not change. The real frame rate and delay on a phone are not measured yet.
- An app that protects its screen from capture (some sign-in, banking and password screens) shows nothing to the person. Your agent can still read that screen as text.
- While a takeover page is open, the phone stays awake (so a sign-in is not cut off) and its awake minutes count as usage. A view-only page does not hold the phone awake. The page uses its own two request slots for each account, so it cannot block your agent.
- Links are kept in the gateway's memory. A gateway restart ends them all.
- There is no sound, and no copy and paste in or out.