export_json
Export network packets from a pcap file to a JSON file, with optional filtering and packet count 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.
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>",
"output_path": "<output_path>"
},
"name": "export_json"
}
}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) |