native-view-at-point
Identify the deepest visible UIView at a raw native window point, revealing the class, identifier, or label behind unlabeled icons, overlays, and custom-drawn cells that the accessibility tree omits.
Instructions
Inspect the deepest visible UIView at a raw native window point.
Unlike native-user-interactable-view-at-point, this ignores userInteractionEnabled, so it answers "what is visually here?" rather than "what would receive the touch?".
Use when a screenshot shows something the accessibility tree does not name — an unlabeled icon, a decorative overlay, a custom-drawn cell — and you need the class, identifier or nativeID of whatever draws it.
Returns { status: "ok", view }: the matched view with its class name, frames, identifier, label and layer name, its ancestor chain by default, and its subviews on request. view is null when nothing is drawn at that point.
IMPORTANT: x and y are raw iOS window coordinates in points, NOT normalized [0,1] simulator tap coordinates.
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 the app window's native point space. NOT normalized [0,1] tap space. | |
| y | Yes | Raw Y coordinate in the app window's native point space. NOT normalized [0,1] tap space. | |
| udid | Yes | Simulator UDID | |
| fields | No | View fields to include. Defaults: pointer, className, tag, frame, windowFrame, 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 |