browser_wait_for_function
Wait for a JavaScript function in the browser to return true. Use to pause automation until a specific condition is met, with optional polling interval and timeout.
Instructions
等待函数返回true
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": {
"fn": "<fn>"
},
"name": "browser_wait_for_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fn | Yes | ||
| arg | No | ||
| polling | No | ||
| timeout | No |