cdp_network_log
Get recent network requests. Shows method, URL, status, duration. On RN 0.83+ uses CDP Network domain. On older versions uses injected fetch/XHR hooks (auto-detected). Buffers are per-device, keyed by Metro port + target id — switching simulators no longer bleeds stale traffic. Pass device: "all" to merge across every device seen this session. Filters AND-combine: filter (URL substring), method (HTTP verb), since (ISO timestamp). When more entries match than limit allows, response includes truncated:true + total_matches.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
limit | number | No | 20 | min: 1, max: 100, integer | Max entries to return (default 20, max 100) |
filter | string | No | Filter by URL substring (e.g. “/api/cart”) | ||
method | unknown | No | Filter by HTTP method, case-insensitive (e.g. “POST” or [“POST”,“PUT”]). AND-combined with filter. Use to isolate mutations from follow-up GETs. | ||
since | string | No | ISO timestamp — drop entries with timestamp < since before applying limit. Use to pin a checkpoint before an action and ask for everything since. | ||
clear | boolean | No | false | Clear network buffer instead of reading | |
device | string | No | Scope: a specific device key OR the literal “all” for a chronologically-merged view across every device. Defaults to the active device. |
cdp_network_log()