pt_read_packet_trace
Reads the simulation event list and per-layer decision log to reveal what each packet did and why, helping diagnose dropped pings and routing or ARP failures.
Instructions
Reads the simulation's event list: what each packet did and WHY.
Besides the path (device, ingress/egress port, source, destination, traffic type and outcome) it returns the decision log that PT generates per OSI layer — the same text as the "PDU Details" panel of its GUI. That is where the real cause of a failing ping shows up, for example: "The next-hop IP address is not in the ARP table."
Requires Simulation mode with generated traffic (pt_simulation_mode(on=True) and then a ping, or pt_simulation_step so the events move on).
Parameters:
limit: maximum frames to return (1-200, default 20).
device: if given, only the frames that went through that device.
include_decisions: if False, omits the per-layer log (shorter reply).
Example: see why a ping is dropped: pt_read_packet_trace(limit=10)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pt_read_packet_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| device | No | ||
| include_decisions | No |