Read EMQX Trace Log
emqx_get_trace_logRetrieve log entries captured by an EMQX trace. Reads the buffered trace events even after the trace finishes, with optional truncation limit.
Instructions
Read what a trace captured.
A trace that is still running usually returns little or nothing — its events sit in an in-memory buffer until the trace expires.
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": {
"name": "<name>"
},
"name": "emqx_get_trace_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Trace name to read. | |
| max_bytes | No | Truncate the log at this many bytes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||