network-capture-stop
Stops JS or native network capture while keeping recorded requests for later analysis, then returns per-layer capture status and stop reasons.
Instructions
Stop capture and keep the recorded requests. Call this after collecting the requests you need or before profiling. Read any Android native bodies you need before stopping. On Chromium, this closes the window for await-network-request. The tab log keeps recording while Argent is attached. Returns a result for each layer. Check armed and reason. The reason can explain an unconfirmed stop or say that capture never started. If Argent fails to reach the JS runtime, retry after it reconnects to Metro.
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-stop"
}
}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. |