browser_wait_for_response
Wait for ONE network response whose URL matches url_pattern (substring, a glob with '*', or 're:') and optionally method/status, then return its status, safe headers and body. To catch a response caused by an action, pass trigger_ref — that element is clicked while waiting (otherwise the response must arrive after this call starts). Text bodies come back inline (256 KB cap); with save=true the body is stored as a workspace file instead (use for binary or large bodies) and file_id is returned.
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": {
"page_id": "<page_id>",
"url_pattern": "<url_pattern>"
},
"name": "browser_wait_for_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | ||
| frame | No | ||
| method | No | ||
| status | No | ||
| page_id | Yes | ||
| filename | No | ||
| timeout_ms | No | ||
| trigger_ref | No | ||
| url_pattern | Yes | ||
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. | |
| include_body | No |