desktop_cdp_click
Clicks page controls by name with CDP-injected mouse events and auto-locates each control’s center, so no coordinate guessing is needed; duplicate names return candidates for disambiguation.
Instructions
按名称点击页面里的控件(走 CDP 注入真实鼠标事件)。 先定位控件矩形中心再点,所以不需要你猜坐标。同名多个时会报错并列出候选。
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": {
"name": "<name>"
},
"name": "desktop_cdp_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 控件文本,支持模糊匹配 | |
| role | No | 限定角色,如 button,用于消歧 | |
| session | No | 会话 id,省略则用当前会话 |