Show recent Modbus requests
get_traffic_logRetrieves the most recent Modbus requests a simulated device received, showing function code, address, quantity and reply. Use it to see what client software is polling or confirm a fault took effect.
Instructions
Show the most recent Modbus requests a device received from client software, oldest first: function code, address, quantity and how it was answered, plus the total number of requests served. Use it to see what the software under test is polling or to confirm a fault took effect. The log keeps the last 500 requests per device and is lost when the device is removed. Changes nothing.
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": {
"device_id": "<device_id>"
},
"name": "get_traffic_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many of the latest requests to return. Default 50. | |
| device_id | Yes | Id of a running device, as returned by create_device, clone_device or list_devices. |