save_capture_to_file
Capture network traffic on a specified interface and save it to a PCAP file for later analysis. Supports duration, packet count, and optional BPF filter.
Instructions
Capture network traffic and save to a PCAP file.
Useful when you want to keep a capture for later analysis.
Args: interface: Network interface name output_file: Path where to save the PCAP file duration: Max capture duration in seconds packet_count: Max packets to capture bpf_filter: BPF capture filter (optional)
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": {
"interface": "<interface>",
"output_file": "<output_file>"
},
"name": "save_capture_to_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| interface | Yes | ||
| output_file | Yes | ||
| duration | No | ||
| packet_count | No | ||
| bpf_filter | No |