decode_packet
Decode a single network packet from a PCAP file, returning verbose text or JSON layers for in-depth protocol analysis. Optionally include hex and ASCII dump.
Instructions
Decode a single packet in full detail.
Args: filepath: Path to PCAP file packet_number: Packet number to decode (1-based) verbose: If True, return verbose text decode; if False, return JSON layers hex_dump: If True, include hex and ASCII dump of raw packet bytes (-x flag)
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": {
"filepath": "<filepath>",
"packet_number": "<packet_number>"
},
"name": "decode_packet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | ||
| packet_number | Yes | ||
| verbose | No | ||
| hex_dump | No |