phone_elements
Reads the current iPhone screen as structured text instead of screenshots, with row metadata and snapshot tokens for tapping elements. Use queries, limits, and selectors to narrow results.
Instructions
The current screen as text — use instead of screenshots. Rows carry kind, label, identifier, value, rect, state and a snapshot token for phone_tap_element, valid for this read only. query/limit/selector narrow rows but keep their indexes. Max 200 rows / 32 KiB; an omission notice means a partial view. registry lists saved flows for a newly entered app: prefer phone_flow_run. alert = a system alert is up: use an alert step, taps on alerts do not act. OCR rows: phone_tap their x/y.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "phone_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | Text read from a fresh screenshot (Vision OCR) for screens the tree cannot describe (games, canvases, video): `auto` adds it only when the tree has no interactive rows, `force` always, `off` (default) never. | |
| limit | No | Return at most this many rows; the answer says how many were left out. | |
| query | No | Keep only rows whose label, identifier, value or placeholder contains this text (case-insensitive). Rows keep their original index. | |
| instance | No | daemon instance name | |
| selector | No | Literal case-sensitive field filters combined with AND; preserves original snapshot indexes. Requires literal criteria; optional index0..199 chooses one match in scoped/query tree order before limit. Row index remains the full snapshot index; incomplete or unknown earlier matches refuse an unproven rank. Filters AX elements, not separate OCR text. | |
| include_hidden | No | Show off-screen/not-drawn rows individually in the text, with their original indexes and hidden state, instead of a five-label summary. The 200-row / 32 KiB text budget still applies. Scroll them into view before acting. Default false. |