iphone_ui_tree
Lists visible UI elements on the current iPhone screen as text with labels, values, and center coordinates, helping agents find buttons, fields, and text or read values without a screenshot.
Instructions
List the visible UI elements of the current screen as text, one per line: [Type] "label" value=… @(center x,center y) width×height, indented by nesting, all in iOS points.
Prefer this over iphone_screenshot to find buttons, fields and text and to read values: it is cheaper
and positions are exact. Pass the center point to iphone_tap, or use iphone_tap_text with the label.
Reads only; adds a note if the phone is locked.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": "iphone_ui_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_lines | No | Maximum number of elements to return (10–1000); the rest is cut off with a count. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |