read_pcap
Analyze network packet captures by reading .pcap or .pcapng files, returning a JSON preview of up to 5 packets and total match count, with optional Wireshark display filter.
Instructions
Read and analyze packets from a .pcap or .pcapng file. Returns a preview of up to 5 packets in JSON plus the total match count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the .pcap or .pcapng file | |
| packet_count | No | Maximum number of packets to read (default: 100) | |
| display_filter | No | Wireshark display filter to apply (optional) |