One packet in detail
packet_detailDecode a single frame into its full protocol layer tree with tshark field names, letting you verify a packet row or trace nested fields at a chosen depth.
Instructions
The full dissection of one frame as tshark decodes it: every protocol layer with
its fields, nested as in Wireshark's packet details pane, with tshark's names for
enumerated values. Use it to check a row from another tool against the packet: rows
carry frame numbers (frame, request_frame, answer_frame, first_frame, ...).
layers keeps only these protocols, e.g. ["diameter"] or ["ip", "gtpv2"] (the frame
layer is always kept). At most max_fields leaf fields are returned (default 300,
server cap 2000); when the cap bites, the innermost layers are kept first and
fields_dropped counts the rest. Values longer than 512 characters are cut.
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": {
"path": "<path>",
"frame": "<frame>"
},
"name": "packet_detail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Capture file (absolute, in an allowed dir) or open_capture handle | |
| frame | Yes | Frame number | |
| layers | No | Protocol layers to keep, such as ["diameter"] | |
| redact | No | Replace subscriber identifiers in this result with tokens; ids+ips hides every IP too | off |
| max_fields | No | Most fields returned |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| time | No | ||
| error | No | ||
| frame | No | ||
| layers | No | ||
| length | No | ||
| window | No | ||
| malformed | No | ||
| protocols | No | ||
| fields_dropped | No | ||
| fields_returned | No | ||
| values_shortened | No |