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)
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 |