get_network_logs
Retrieve and filter network traffic data from Chrome DevTools Protocol, including REST API calls and WebSocket frames, for debugging web applications.
Instructions
Retrieve intercepted network requests (REST) and WebSocket frames with optional advanced filtering. Use this tool to inspect API calls, page assets, and WebSocket traffic. It is highly recommended to use the available filters to avoid flooding the context window with unnecessary network data.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ws_direction_filter | No | Filter WebSocket frames by their transmission direction. Valid options: "sent" (client to server), "received" (server to client), or "both" (default). | |
| type_filter | No | Select the type of network traffic to retrieve. Valid options: "rest" (only REST/HTTP requests), "websocket" (only WebSocket frames), or "both" (default). | |
| clear | No | If true, clears the internal network logs cache after retrieving the current logs. Use this to reset the state and only capture new traffic going forward. | |
| include_details | No | If true (default), returns full details including request/response headers, response bodies for REST, and full payloads for WebSockets. If false, returns a summary containing only the URL, method, status, statusText, and resourceType (or payload length for WS). Set to false when you just need to survey what requests were made without downloading all their contents. | |
| ws_content_filter | No | Filter WebSocket frames by their payload content. Only frames whose payload data contains this exact string (case-insensitive) will be returned. | |
| url_filter | No | Filter by URL content. Only requests or WebSocket connections whose URL contains this exact string (case-insensitive) will be returned. Leave empty to disable URL filtering. |