click
Clicks an element on a webpage using a CSS selector or index, such as buttons or links. Supports timeout for waiting.
Instructions
点击页面上指定元素(按钮、链接、任意可点击元素)。支持 CSS 选择器或元素索引。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | 当多个元素匹配时,按序号点击(从 0 开始) | |
| timeout | No | 等待元素出现的超时时间(毫秒),默认 5000 | |
| selector | No | CSS 选择器(如 "button.submit", "a.next-link") |