browser_wait_for_network
Wait for a specific network response by URL pattern and method, returning status and JSON body. Use after triggering an action to ensure its API call completes without guessing wait times.
Instructions
Wait for a specific network response matching URL pattern and/or method. Returns the response with status and JSON body. Use after triggering an action to wait for its API call to complete instead of guessing with wait times. url_pattern accepts a single substring OR an array of substrings (any-of match — resolves on the first matching response).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | HTTP method to match e.g. GET, POST | |
| timeout | No | Max wait time in ms (default: 10000) | |
| url_pattern | No | URL substring to match (e.g. '/api/documents'), or an array of substrings for any-of matching (e.g. ['/api/users', '/api/session']) |