ios_elements_in_region
List addressable elements whose bounding box INTERSECTS the given rectangle. Counterpart of device_elements_in_region. Returns each element with its attributes, bounds, centre and ranked locators, sorted SMALLEST-FIRST so the most specific element comes back first. Use to enumerate a region (tab bar, dialog, list section) without reading the whole tree. Coordinates are iOS screen POINTS, the same space as ios_tap. Zero-area elements are kept — iOS tab-bar labels often report 0x0 and are still tappable by label. Requires an active iOS automation session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Left edge of the region (screen points) | |
| x2 | Yes | Right edge of the region (screen points) | |
| y1 | Yes | Top edge of the region (screen points) | |
| y2 | Yes | Bottom edge of the region (screen points) | |
| udid | Yes | iOS device UDID | |
| limit | No | Cap on returned elements (default 50) |