tshark_query
Run tshark queries on PCAP files to filter network traffic and extract specific packet fields, enabling targeted analysis of captured data.
Instructions
Run an arbitrary tshark query on a PCAP file. pcap_path: path to PCAP file display_filter: Wireshark display filter e.g. 'http.request', 'tcp.port==21', 'smb', 'dns.qry.name', 'frame.number == 42' fields: comma-separated tshark fields to extract e.g. 'ip.src,ip.dst,tcp.port,http.request.uri' max_lines: max output lines (default 200)
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": "tshark_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | ||
| max_lines | No | ||
| pcap_path | Yes | ||
| display_filter | No |