native-user-interactable-view-at-point
Find the deepest touch-responsive view at a raw screen point, respecting userInteractionEnabled, to debug unexpected taps or unresponsive controls.
Instructions
Inspect the deepest UIView at a raw native window point that would actually receive touch input.
Unlike native-view-at-point, this respects userInteractionEnabled and is closer to UIKit hit-testing semantics.
Use when a tap lands somewhere unexpected or does nothing, to see which control UIKit would hand the touch to — a transparent overlay swallowing it, a parent recognizer, a disabled button.
Returns { status: "ok", view }: the hit-test winner with its class name, frames, identifier, label and layer name, its ancestor chain by default, and its subviews on request. view is null when no touchable view sits under that point.
IMPORTANT: x and y are raw points on the portrait axes of the screen, NOT normalized [0,1] simulator tap coordinates. To get them from a describe frame, multiply the normalized values by the screen size in points. Do this also when the UI is landscape.
If status is restart_required: follow the message (usually restart-app), then retry. If status is service_stale: the app is already injected, so restarting it cannot help — restart the tool-server (argent server stop && argent server start --detach) and retry. If the same status comes back after that restart, stop restarting: follow the message, which names the terminal fallback. If status is connect_pending: the app is injected and still connecting — do not restart it, wait a few seconds and retry. If status is init_failed: the simulator's native-devtools environment could not be initialised — follow the message (re-boot the simulator) rather than retrying this tool.
A not-connected or not-running app comes back as one of those statuses rather than a failure. Failures are separate: an Apple system app is rejected outright (terminal — never retry it), and the point query itself can error or time out.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Raw X coordinate in points, on the portrait axes of the screen (the axes of native-describe-screen frames). NOT normalized [0,1] tap space. | |
| y | Yes | Raw Y coordinate in points, on the portrait axes of the screen (the axes of native-describe-screen frames). NOT normalized [0,1] tap space. | |
| udid | Yes | Simulator UDID | |
| fields | No | View fields to include. Defaults: pointer, className, tag, frame, windowFrame, screenFrame, bounds, hidden, alpha, opaque, clipsToBounds, userInteractionEnabled, depth, identifier, label, layerName, nativeID. Additional: center, transform, contentMode, backgroundColor, tintColor | |
| bundleId | Yes | Bundle ID of the app | |
| maxDepth | No | Maximum depth for returned child/ancestor serialization (default 150) | |
| skipClasses | No | Exact UIView class names whose entire subtree should be pruned | |
| includeChildren | No | Include child views for the matched view (default false) | |
| includeAncestors | No | Include ancestor chain for the matched view (default true) | |
| skipClassPrefixes | No | Class name prefixes to prune entire subtrees |