adb_tcpdump_start
Starts a background tcpdump packet capture on an Android device, with optional interface and filter settings, to diagnose network traffic. Requires root or a tcpdump binary on the device.
Instructions
Start a packet capture on the device using tcpdump. Requires root or tcpdump binary on device. Capture runs in background.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "adb_tcpdump_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial | |
| filter | No | tcpdump filter expression (e.g., 'port 443', 'host 10.0.0.1') | |
| interface | No | Network interface to capture (default: 'any') | any |
| maxPackets | No | Stop after N packets (1-1000000, omit for continuous until stop) |