device_elements_in_region
List addressable UI elements (resource-id, text, or content-desc present) whose bounding box intersects the given physical-pixel rectangle. Returns each element with its attributes, bounds, center coords, and ranked locator strategies. Sorted smallest-first so the most specific element comes back first. Use to enumerate the contents of a region (bottom nav, dialog, list section) without parsing the full XML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Left edge of region (physical pixels) | |
| x2 | Yes | Right edge of region (physical pixels) | |
| y1 | Yes | Top edge of region (physical pixels) | |
| y2 | Yes | Bottom edge of region (physical pixels) | |
| udid | Yes | Device serial number (UDID) | |
| limit | No | Cap on number of returned elements (default 50) |