desktop_click_element
Clicks or invokes a visible UI control by matching its text within a specified window, using UI Automation when supported and falling back to a center click.
Instructions
元素级执行:按可见文本定位控件并触发它。 优先用 UI Automation 的 InvokePattern(对按钮最可靠),不支持时退回点击其中心。 会真实操作界面,调用前请确认控件名称。
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": {
"handle": "<handle>",
"name": "<name>"
},
"name": "desktop_click_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 控件文本,支持模糊匹配,如 "确定" | |
| handle | Yes | 窗口句柄 | |
| verify | No | 截图比对前后变化 | |
| verifyRegion | No | 只比对这块矩形(一般传该窗口的 rect),不传则全屏 |