capture_start
Start capturing USB traffic to a pcapng file for protocol reverse engineering. Requires elevated privileges on Linux; pair with capture_stop.
Instructions
Start a USB traffic capture into out (usbmon on Linux, USBPcap on Windows).
Side effects: launches a background capture process that keeps writing until capture_stop. Needs elevated privileges on Linux (usbmon; typically root or a usbmon group). Does not touch the device itself. Pair every start with capture_stop; do not start a second capture while one is running. Prefer this over analysis tools when you still need live traffic.
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": "capture_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bus | No | usbmon bus number N for /dev/usbmonN; ignored on Windows/USBPcap. Default 0 | |
| out | No | Output pcapng path (overwritten if it already exists) | capture.pcapng |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |