ui_find
List interactive UI elements in a window, filter by role or name, get stable element indices and action flags for automation.
Instructions
List interactive UI elements in a window (buttons, fields, menus first; grid cells last). Each item has a stable global element_index plus can_invoke/can_set_value flags. Paginated (total/offset/limit/has_more). Read-only — no action tier required. Pass element_index to ui_invoke/ui_set_value.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ui_find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | No | Exact window handle | |
| role | No | Filter by role (Button, Edit, MenuItem, ...) | |
| limit | No | Page size (default 30, max 200) | |
| offset | No | Pagination offset (default 0) | |
| name_contains | No | Filter elements by name | |
| title_contains | No | Window title fragment |