Wait for a network response (optionally around a trigger)
wait_for_responseWait for a network response matching a URL pattern and report its status, method, content-type, size, and body snippet. Trigger an action after arming to catch fast responses without missing them.
Instructions
Wait for a network response whose URL matches a pattern, and report its status, method, content-type and size, plus an optional body snippet. An optional trigger interaction fires AFTER the waiter is armed, so a fast response cannot be missed (click Save, await POST /api/save). On timeout it lists the responses it did see, to help fix the pattern. Acts on the open page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trigger | No | Interaction to run after the waiter is armed (avoiding a race), e.g. click Save. Same fields as interact_and_audit. | |
| timeoutMs | No | ||
| urlPattern | Yes | Substring or * glob matched against response URLs (e.g. **/api/users). First match wins. | |
| includeBody | No | Include a capped snippet of the response body (text types only). Default false. |