export_to_json
Convert PCAP packet captures into structured JSON data for network analysis. Supports display filters, packet limits, and TLS decryption via key log files.
Instructions
Export packets from a PCAP file as JSON for structured analysis.
Args: file_path: Path to the PCAP file display_filter: Optional display filter to apply max_packets: Maximum number of packets to export (default 50) keylog_file: Optional path to a TLS key log file for decrypting TLS traffic
Returns: JSON-formatted packet data (decrypted if keylog_file is provided)
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": "export_to_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| keylog_file | No | ||
| max_packets | No | ||
| display_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |