browser_wait_for_url
Wait for page URL to change and match a substring after redirects. Optionally wait for a readiness signal to ensure the page is fully loaded.
Instructions
Wait for the page URL to change and match a substring pattern. Use after actions that trigger redirects (JS redirects, auth redirects, SPA route changes). Returns current URL on timeout. Optionally chain a readiness gate via wait_for so you don't have to follow up with setTimeout/wait.
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": {
"pattern": "<pattern>"
},
"name": "browser_wait_for_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exact | No | If true, match pattern as exact URL equality instead of substring (default false) | |
| pattern | Yes | URL substring to match (or exact string if exact:true) | |
| timeout | No | Max wait time in ms (default: 10000) | |
| wait_for | No | Optional readiness signal to wait for after the URL matches. 'load' = full load event, 'domcontentloaded' = DOM parsed, 'networkidle' = no network for 500ms. Omit for just the URL match. |