view-network-logs
Inspect outbound HTTP traffic from the running app to debug API calls. Returns paginated request details with method, URL, status, size, and duration.
Instructions
Retrieve captured network (HTTP) requests from the running app. Returns a paginated list of requests with method, URL, status, resource type, size, and duration. Each entry includes a requestId that can be passed to view-network-request-details for full details. On React Native (iOS / Android / Vega) interception is injected into the JS runtime — it captures fetch() calls. On Chromium it reads the browser's native CDP Network domain (the active tab; all request types). Use when inspecting outbound HTTP traffic or debugging API calls in the running app. Fails if the app is not connected (RN) or the device is not reachable (Chromium).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Metro server port (RN only; ignored on Chromium) | |
| device_id | Yes | Device id from list-devices (iOS simulator UDID or Android serial) — the same id used with debugger-connect. | |
| pageIndex | No | Page index (0-based) or "latest" for the most recent page. Each page contains up to 50 entries. | latest |