browser_wait_for_function
Pause browser automation until a JavaScript expression becomes truthy; set a timeout and polling interval to wait for dynamic page states before proceeding.
Instructions
Wait for a JavaScript expression to become truthy.
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": {
"session_id": "<session_id>",
"script": "<script>"
},
"name": "browser_wait_for_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| session_id | Yes | ||
| timeout_seconds | No | ||
| poll_interval_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||