Endpoint
Overview
Takes a screenshot of each phone’s screen as it is at the moment of the request. The pixel positions in the image are the coordinates that Touch takes. The response is JSON. Each screenshot comes back as a link,imageUrl: fetch it to get the image bytes.
Two optional analyses can run on the same screenshot, so that your code does not need to look at pixels:
ocrreads the text on the screen and returns each line with its position.detectfinds the interface elements on the screen (buttons, icons, fields) and returns each with a label and its position.
annotate as well to also get a second image: the same screenshot with every returned box drawn on it and numbered. The numbers match the id of each item in the data, which is useful when a person, or a vision model, picks a target by number.
Requires an active session on each phone.
Platforms: Android, iPhone.
Screens that an app marks as protected (some banking and streaming apps) come back black. That is the phone’s own restriction.
Request Body
One phone, instead of
phoneIds. The answer’s data is then that phone’s result itself, not a list, and a failure on the phone is the request’s ok: false with the phone’s error (at the HTTP status of its code). Give phoneId or phoneIds, not both.Also return
annotatedImageUrl: the screenshot with the boxes of text and elements drawn on it. Needs ocr or detect.What to return:
image (the screenshot link, as without this field), text (no image: only the text lines, and the elements when detect is set; ocr is on unless you turn it off) or both. text is the cheapest way for a model to read a screen.From
256 to 2048. The image is scaled so that its longer side is at most this many pixels; scale in the result says by how much. Every coordinate in the answer stays in screen pixels.[x0, y0, x1, y1]: left, top, right and bottom as fractions 0 to 1 of the screen, the same format as screen conditions and tap targets. The image is cropped to it, and only the text lines and elements whose center is inside it are returned.Return
text and elements as short rows, [id, "text", cx, cy, w, h] and [id, "label", cx, cy, w, h]: the center point and size of each box in screen pixels, rounded, without confidence.A
screenHash from an earlier answer for the same phone. When the screen has not changed since, the result is only changed: false and screenHash: no image, no text, and the text is not read. Use it to check cheaply whether something happened.Response
One Result per phone, in the order of
phoneIds.x + width / 2, y + height / 2, or tap it by its text with Tap.
Getting the Image
GET the link. The response body is the image itself.
-L; fetch does by default).
For a model: reading the screen cheaply
A model that drives a phone pays for every look. One TikTok For You frame from an Android phone (1200×2652, 25 text lines read), measured on 2026-11-16:
The JSON is the exact answer for that frame (characters, with tokens at about 3.2 characters each). Image tokens follow the model’s own rule: the image is shrunk to at most 1568 pixels on its long side and about 1.15 megapixels, then costs width × height / 750.
Read the screen as text first (
view: "text", compact: true), look at the image (view: "image", maxSide: 768, format: "jpeg") only when the text is not enough, and pass since to skip a frame that has not changed.