wireshark_get_packet_context
Retrieve packets surrounding a target frame in a pcap file to understand network events leading up to or following an error.
Instructions
[Context] View packets surrounding a specific frame (before and after). Useful for understanding what led to an error or what happened immediately after.
Args: pcap_file: Path to capture file frame_number: The center packet number count: Number of packets to show before and after (default: 5)
Returns: Tabular packet list centering on the target frame.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| pcap_file | Yes | ||
| frame_number | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |