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.
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": {
"file_path": "<file_path>"
},
"name": "read_pcap"
}
}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) |