query_pcap
Run a custom tshark query on a pcap file using Wireshark display filters and extract specific fields to analyze network traffic.
Instructions
Run a custom tshark query on a pcap file with optional display filters and field extraction. Use Wireshark display filter syntax.
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": {
"pcap_path": "<pcap_path>"
},
"name": "query_pcap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Fields to extract (e.g., ['ip.src', 'ip.dst', 'tcp.port']) | |
| pcap_path | Yes | Path to the pcap file | |
| display_filter | No | Wireshark display filter (e.g., 'ip.addr==192.168.1.1', 'tcp.port==80', 'http.request.method==GET') |