tshark_filter
Apply a display filter to a packet capture file and retrieve matching packets in JSON, text, or custom fields format for targeted network analysis.
Instructions
Apply a display filter to a pcap file and return matching packets. Useful for extracting specific traffic.
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": "<file>",
"filter": "<filter>"
},
"name": "tshark_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the pcap file on the remote host | |
| fields | No | Fields to extract when outputFormat is 'fields' | |
| filter | Yes | Display filter (e.g., 'http.request', 'dns', 'tcp.flags.syn == 1') | |
| outputFormat | No | Output format (default: json) |