view-network-logs
Lists captured HTTP requests from React Native JavaScript or the active Chromium tab to help you find a request or compare calls; pass an ID to inspect headers and bodies.
Instructions
List captured HTTP requests from React Native JavaScript or the active Chromium tab. Use when you need to find a request or compare several calls. For native traffic, use native-network-logs. Returns a paginated list with request IDs, status, size and timing. Pass an ID to view-network-request-details for headers and bodies. On iOS simulators and Android, call network-capture-start before the action and again after a reload. On Vega, read this log before the action and again after a reload to resume capture. Chromium records while Argent is attached to the page. Fails if the Chromium target is unreachable. A read can also fail if Argent cannot reach the debugger for an existing JS capture. If the tool returns a capture message in place of a list, follow it before retrying.
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": {
"device_id": "<device_id>"
},
"name": "view-network-logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. Range: 1 to 65535. | |
| device_id | Yes | Device ID from list-devices. For iOS simulators and Android, use logicalDeviceId if capture started with it. | |
| pageIndex | No | Zero-based page index. "latest" and null select the newest page. Each page contains up to 50 entries. Default: "latest". | latest |