get_network_logs
Retrieve HTTP requests and WebSocket frames from Chrome network activity to audit API calls, debug network issues, and inspect WebSocket traffic with filtering options.
Instructions
Retrieves intercepted HTTP/REST requests and WebSocket frames from network activity cache with filtering. Side effects: optionally clears cached logs when 'clear' is true. Prerequisites: requires active Chrome tab with network monitoring enabled. Returns: JSON array of requests/WebSocket frames with optional full details. Rate limits: none. Use this to audit API calls, debug network issues, inspect WebSocket traffic. Alternatives: browser DevTools Network tab, HAR file export.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Clear network cache after returning logs. Constraints: boolean. Interactions: when true, subsequent calls return only new traffic. Defaults to: false. | |
| ws_content_filter | No | WebSocket payload substring match (case-insensitive). Constraints: non-empty string. Interactions: applies only when type_filter includes 'websocket'; filters by payload content. Defaults to: None (no content filtering). | |
| type_filter | No | Traffic type to include. Constraints: 'rest', 'websocket', or 'both' (case-insensitive). Interactions: limits results to specified type. Defaults to: "both". | |
| url_filter | No | Partial URL match (case-insensitive). Constraints: non-empty string. Interactions: filters both REST and WebSocket URLs; empty string disables filtering. Defaults to: None (no URL filtering). | |
| include_details | No | Include full request/response details. Constraints: boolean. Interactions: when false, returns summary only (URL, method, status); when true, includes headers, bodies. Defaults to: true. | |
| ws_direction_filter | No | WebSocket frame direction filter. Constraints: 'sent', 'received', or 'both'. Interactions: applies only when type_filter includes 'websocket'. Defaults to: "both". |