export_json
Export packets from a pcap file to a JSON file. Optionally apply a display filter and set a packet limit.
Instructions
Export packets from a pcap file to a JSON file at output_path. Creates the output file if it does not exist; overwrites if it does.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the source .pcap or .pcapng file | |
| output_path | Yes | Path where the JSON output will be written | |
| packet_count | No | Maximum number of packets to export (default: 1000) | |
| display_filter | No | Wireshark display filter to apply (optional) |