Click Webview Element by Text
webview_click_textClick the outermost visible element containing specified text in a mobile webview. Specify device and visible text to automate Android and iOS webview interactions.
Instructions
按可见文本点击 webview 内元素(找最外层匹配且可见者)。
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": {
"device": "<device>",
"text": "<text>"
},
"name": "webview_click_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 元素可见文本 | |
| device | Yes | 目标设备 serial(同 mobile_list_available_devices 的 id) |