wait_for_network
Block execution until a network request containing a given URL substring finishes, optionally filtered by HTTP method. Returns the request's URL, status, method, or times out.
Instructions
Block until a network request whose URL contains the given substring completes (optionally filtered by HTTP method), up to timeout. url_pattern is required and is a plain substring match against the full URL including query string — not a regex or glob. Returns the matched request's URL/status/method, or times out. To catch a request fired by a click, run the click and this as consecutive steps in one interact_and_test call; after the fact, read get_response_body/get_network_log instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | HTTP method filter (optional, e.g. 'POST', 'GET') | |
| timeout | No | Max wait time in ms (default: 30000) | |
| session_id | Yes | Session ID | |
| url_pattern | Yes | Required. Plain substring of the full request URL incl. query string (e.g. '/api/tasks', 'graphql') — not a regex; anchors ($) and wildcards (.*) never match. |