look
Read the current simulator screen or browser page as structured element roles, IDs, labels, and states before and after UI actions.
Instructions
What's on this session's simulator screen now, one line per element: role, id (testID), label and state. Read it before acting and after the screen changes. A nearly empty read (maps, canvases) comes with a screenshot: tap what it shows by point. On a lane that holds a browser and no simulator, or with browser: true, it reads the page in the lane's browser instead: role, ref (what the browser driver's CLI acts on), name and state.
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": "look"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How many levels of elements to show. | |
| bounds | No | Add each element's bounds in points, [x1,y1][x2,y2]. Simulator only. | |
| within | No | An id or label: show only that element's subtree. | |
| browser | No | Read the lane's browser, when the lane holds a simulator as well. | |
| interactiveOnly | No | Only elements you can tap, toggle or type into. |