monitor_network
Capture network events by monitoring API calls and downloads during a browsing session. Start monitoring before actions, then query to retrieve captured traffic or wait for downloads.
Instructions
Control network monitoring for the current session.
Start monitoring before performing actions that trigger API calls or downloads, then query to see what was captured.
Args: session_id: Active session ID. command: start: begin capturing. stop: stop. query: return captured events. wait_for_download: block until download. url_pattern: Optional regex pattern to filter captured requests by URL. timeout_ms: For wait_for_download: maximum wait time. Default: 30000. capture_response_body: Whether to capture response bodies (adds overhead). Default: false. limit: Maximum number of events to return in a query response. Default: 100. offset: Number of matching events to skip before returning results. Default: 0.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| command | Yes | ||
| url_pattern | No | ||
| timeout_ms | No | ||
| capture_response_body | No | ||
| limit | No | ||
| offset | No |