get_network_logs
Lists a tab’s HTTP requests and WebSocket frames so you can filter, inspect headers and bodies, trace redirects, and reveal sensitive headers when allowed.
Instructions
Lists the tab's HTTP requests (id, method, URL, status, type; the last 3 navigations, oldest first) and WebSocket frames and closes, with filters. request_id or include_details gives headers and bodies (cut at 64000 characters; a body over 2 MB is omitted, with its size). A redirect chain is one request, found by any hop's URL; its details list each hop's status and Location. Request bodies and the values of headers other than standard ones known to hold no credential (an app's own X-... headers included) are redacted unless include_sensitive_headers.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_network_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Remove the returned entries. Default: false. | |
| tab_id | No | Default: the active tab. | |
| request_id | No | One request's headers and body (an id from the summary). | |
| url_filter | No | Case-insensitive URL substring. | |
| instance_id | No | Default: 'default'. | |
| type_filter | No | 'rest', 'websocket' or 'both' (default). | |
| include_details | No | Every request's headers and bodies, as JSON. Default: false (one line each). | |
| ws_content_filter | No | Case-insensitive WebSocket payload substring. | |
| ws_direction_filter | No | 'sent', 'received' or 'both' (default). | |
| current_navigation_only | No | Only the current navigation. Default: false. | |
| include_sensitive_headers | No | Show every header's value (Authorization, Cookie, an app's own X-... headers) and request bodies. Default: false. |