Find UI elements
ui_findUse this when you need a small set of native UI elements by role/name/label/AutomationId after ui_snapshot. It requires an element criterion; use ui_snapshot, not an empty ui_find, to enumerate UI. Prefer returned id or compact label for subsequent ui_action; refresh only when the UI has changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Element id returned by ui_snapshot or ui_find. Linux ids are stable per-process accessibility paths and legacy linux:<index> ids remain accepted. | |
| app | No | Limit matching to an application/process name substring when available. | |
| pid | No | Limit matching to one owning process id when available. | |
| name | No | Accessible name/title substring. | |
| role | No | Accessible role such as Button, Edit, textbox or AXButton. | |
| label | No | Compact numeric label from the most recent ui_snapshot/ui_find; useful for repeated actions without repeating names or coordinates. | |
| limit | No | Maximum matches; default 20. | |
| device | Yes | ReMCP device id returned by list_devices. Required for every device operation. | |
| refresh | No | Force a fresh accessibility capture instead of the short-lived snapshot cache. | |
| max_depth | No | Maximum accessibility tree depth to traverse. | |
| max_nodes | No | Maximum accessibility nodes to inspect or return; keep this bounded and raise it only when the target is missing. | |
| window_title | No | Limit matching to a top-level accessibility window/frame title substring when available. | |
| automation_id | No | Windows AutomationId when available. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Find UI elements structured result for ui_find. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload. | |
| text | Yes | Concise human-readable result of the tool call. |