Answer a held request yourself
browser_network_provide_responseFulfill an intercepted request with a custom HTTP status, content type, and body instead of sending it to the network, enabling API stubbing by request ID.
Instructions
Fulfil one intercepted request with your own response body (network.provideResponse), instead of letting it reach the network. Pass the request id reported by browser_network_requests. Use this to stub an API, then release the rest with browser_network_continue_all.
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": {
"requestId": "<requestId>",
"statusCode": "<statusCode>"
},
"name": "browser_network_provide_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Response body (default empty) | |
| requestId | Yes | Request id from browser_network_requests (network.beforeRequestSent) | |
| statusCode | Yes | HTTP status code, e.g. 200 | |
| contentType | No | Content-Type header (default text/plain) |