native-network-logs
Lists native HTTP requests from iOS simulators and debuggable Android builds to debug native module or SDK traffic. Start capture first; logs remain readable after capture stops.
Instructions
List native HTTP requests from URLSession and NSURLConnection on iOS simulators, or OkHttp in a debuggable Android build. Use when debugging traffic from a native module or SDK. Coverage excludes background URLSession transfers, WKWebView and Network.framework. Call network-capture-start before triggering requests. Returns recent requests oldest first, with capture status and coverage in header. The log stays readable after capture stops. Pass an ID to view-network-request-details. On an iOS simulator, a blocked read returns status and a message with the next action. Follow the message before retrying. If the call fails with NATIVE_DEVTOOLS_NOT_CONNECTED, follow its message. An Apple system app is rejected outright (terminal: never retry it).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"udid": "<udid>",
"bundleId": "<bundleId>"
},
"name": "native-network-logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Exclude requests to this Metro port on local addresses. Omit it to use the device's Metro port (usually 8081). Range: 1 to 65535. | |
| udid | Yes | Device ID from list-devices: an iOS simulator UDID or Android serial | |
| clear | No | Hide existing history from later lists. Cleared request IDs still work in view-network-request-details. Default: false. | |
| limit | No | Take the newest matching requests and return them oldest first. Use 0 for capture status and totals without entries. Default: 50. Minimum: 0. | |
| bundleId | Yes | App bundle ID on iOS or package name on Android. |