read_pcap
Read and analyze packets from a packet capture file, returning a JSON preview of up to 5 packets and the total match count. Apply optional display filters to narrow results.
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) |