click
Clicks a specified element after scrolling it into view and waiting for clickability, then returns the updated page snapshot and any triggered events like navigation, new tabs, popups, or downloads.
Instructions
点击元素。会自动滚动到可见并等待元素可点击。返回点击后的页面快照和发生的事件(跳转、新标签页、弹窗、下载)。
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": {
"ref": "<ref>"
},
"name": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | 目标元素的 ref(来自 snapshot,如 e12) | |
| button | No | ||
| element | No | 元素的简短描述(仅用于日志,便于人工排查) | |
| modifiers | No | 按住的修饰键 | |
| doubleClick | No |