find_element
Search interactive UI elements by text, role, or app to get refs for precise click/type actions—avoid coordinate guessing by providing text or app filters.
Instructions
按文本/角色/应用搜索可交互元素,返回候选列表(每个含 [ref])。用 ref 配合 click/type_text 精确操作,避免坐标估算。text 为名字子串(如『保存』『是』),role 为角色子串(如 'push button';注意 GTK 输入框的 role 是 'text' 而非 'entry'),app 限定应用名关键词。至少提供 text 或 role 之一。强烈建议带 app 或 text 限定:全桌面裸搜很慢,且遍历大型应用(浏览器/Electron)时有节点数熔断,结果可能不全。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | ||
| role | No | ||
| text | No | ||
| limit | No | ||
| interactive_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |