display_filter
Filter a pcap file using a Wireshark display filter and preview matching packets.
Instructions
Apply a Wireshark display filter to a pcap file and return a preview of matching packets.
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>",
"filter": "<filter>"
},
"name": "display_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | Yes | Wireshark display filter (e.g., 'tcp.port == 80', 'http') | |
| file_path | Yes | Path to the .pcap or .pcapng file | |
| packet_count | No | Maximum number of packets to return (default: 100) |