wait_for_url
Wait until the page URL contains a given substring, ideal for SPA navigation where routes change without page reloads. Returns on match or timeout.
Instructions
Wait for the page URL to contain a given substring.
Use this after clicking a SPA navigation link where the URL changes client-side without a full page reload. Returns once the URL matches or the timeout expires.
Args: url_contains: Substring the URL must contain (e.g. '/dashboard', '?tab=posts'). timeout_ms: Maximum time to wait in milliseconds (default 10 000).
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": {
"url_contains": "<url_contains>"
},
"name": "wait_for_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout_ms | No | ||
| url_contains | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |