network_monitor
Capture all network requests from a web page, including those initiated by the page itself, using Chrome DevTools Protocol. Retrieve requests by regex pattern or filter for failed ones.
Instructions
Monitor network requests via CDP. Workflow: start → trigger action → get(pattern: 'api'). Use INSTEAD of evaluate-based fetch interceptors (window.fetch = ..., XMLHttpRequest.prototype.open = ...) — network_monitor captures all requests including those initiated by the page itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | start: begin recording, get: retrieve recorded requests, stop: return and clear | |
| filter | No | Filter results — 'failed': only requests with HTTP >= 400 or network errors | |
| pattern | No | Regex pattern to match against request URLs |