wait_for_load_state
Wait for a page to reach a specific load state: load, domcontentloaded, or networkidle. Checks the current readyState first and only waits if the target state hasn't been reached.
Instructions
Wait for page to reach a specific load state. Checks current readyState first, only waits for event if page has not reached the target state yet. States: load (fully loaded), domcontentloaded (HTML ready), networkidle (no network activity for 500ms).
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": "wait_for_load_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | State to wait for | load |
| tabId | No | Tab ID (optional) | |
| timeout | No | Timeout in milliseconds |