describe
Read the accessibility or DOM element tree of the current screen to locate element frames and labels for UI interaction when no fresh tree is available.
Instructions
Get the accessibility / DOM element tree for the current screen.
Use when you need element frames or labels and have no fresh tree: most interaction tools (not shake) already return one after each action, or name an identical earlier one by its tree id.
On iOS it reads the AXRuntime accessibility service, so it sees whatever is visible, including system dialogs and permission prompts. While a system dialog is visible it returns the dialog's elements (buttons, text); otherwise the foreground app's. On a physical iOS device it covers only the app started with launch-app; to read system dialogs there, launch-app com.apple.springboard first. On a local iOS simulator a text field shows its placeholder as its value, with no label, so an empty field reads like one holding that text. A text field with no accessibility label or identifier (e.g. the Settings search field) can also be missing from the tree, even with text typed in it. Check a screenshot in both cases.
On Android it reads the tree through Argent's UiAutomation helper, falling back to uiautomator dump. On Chromium it walks the DOM over the Chrome DevTools Protocol: every visible element with its ARIA role, accessible name and the visible part of its bounding rect; content scrolled or clipped out of view, or skipped by a closed <details> or content-visibility: hidden, has a zero-area frame.
On Vega (Fire TV) it reads the on-device automation toolkit; [focused]/[selected] mark the D-pad cursor, which you move with tv-remote (Vega has no touch).
On a TV target (Apple TV / Android TV: a list-devices entry with runtimeKind 'tv') it returns the FOCUSED element and the FOCUSABLE elements instead, since a TV UI has no tap coordinates. Move the highlight with tv-remote, then read where focus landed from the tree in its result, or call describe again when it is missing.
Returns { description, source }: description renders the tree one line per element, with its role, label/value/id, VoiceOver hint (iOS simulator), interactivity flags and frame. Frames are normalized [0,1] fractions of the screen / window width and height (not pixels); tap an element at the centre of its frame. The tree has no z-order or occlusion information: an element may be covered by an overlay (e.g. a toolbar over list rows), so check a screenshot when a tap lands unexpectedly.
Fails if the tree cannot be read, e.g. on a physical iOS device before launch-app has started an app.
For UIKit properties of a view (class name, accessibilityIdentifier), use native-find-views (iOS simulator only). For React Native component names, or a testID describe does not list, use debugger-component-tree.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"udid": "<udid>"
},
"name": "describe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Target device id from `list-devices` (iOS UDID, Android serial, Vega serial, or Chromium id). | |
| bundleId | No | App bundle ID, used as a target hint on iOS when the AX-service returns no elements and describe falls back to native-devtools inspection. If omitted, the fallback auto-detects the frontmost connected app. Ignored on every other platform, including a physical iOS device. |