network-capture-start
Starts HTTP capture on iOS simulators, Android, and Chromium before the action to inspect; returns per-layer readiness so you can collect requests.
Instructions
Start HTTP capture on iOS simulators, Android and Chromium. Call this before the action you want to inspect. Each start keeps existing requests and opens a new window for await-network-request. On Chromium, start attaches to the tab if needed and marks the window in its log. Returns each layer's readiness in armed. Follow reason if a layer is still waiting or unavailable. Native capture can arm when the app connects on iOS. On Android, it can attach when Argent launches the app. JS capture needs the app's Metro port. Start it again after a reload or relaunch. Stop capture with network-capture-stop when you have the requests. Native capture can affect timing. Fails with NETWORK_CAPTURE_UNAVAILABLE or TOOL_DEPENDENCY_MISSING when every requested layer is unavailable.
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": "network-capture-start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | The app's Metro port for JS capture and native log filtering. Omit it only when the app uses the device's port (usually 8081); otherwise check the project's Metro start script. Chromium uses the CDP port in udid. Range: 1 to 65535. | |
| udid | Yes | Device ID from list-devices. | |
| layer | No | Omit to control both layers. Selecting one leaves the other alone. Chromium ignores this setting. | |
| bundleId | Yes | App bundle ID on iOS or package name on Android. On Chromium, use a valid placeholder such as argent.capture. | |
| logicalDeviceId | No | For iOS simulators and Android on shared Metro, use the logical ID for the intended device if requested. Reuse it for start and stop, and as device_id for JS reads. |