view-network-logs
Inspect outbound HTTP requests captured from the running app. Returns paginated list with method, URL, status, size, duration, and requestId for full details. Use to debug API calls and network traffic.
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. Optional — omit it to use this device's port, 8081 by default. Ignored for Chromium, whose CDP port is encoded in device_id. | |
| 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 |