ui_find
Find UI widgets by exact name or class, or substring text match, without fetching the entire tree.
Instructions
Find widgets by name, class or text, without fetching the whole tree.
name and class_name match exactly; text matches as a substring,
because a label's exact string is the one thing a caller rarely knows in
advance. At least one of the three is required -- with none of them this
would be ui_tree, and answering it as such would hide which question was
actually asked.
Filtering happens in the client, not here: sending the whole tree back so it could be filtered locally is exactly what the page limit exists to avoid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| root | No | menu | |
| text | No | ||
| depth | No | ||
| limit | No | ||
| timeout | No | ||
| class_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| hint | No | ||
| error | No |