komrad

get_log_lines

Read every log line written under one trace id, in order.

read-onlyidempotentMCP toolLog

A failed call returns its trace id.

Calling it#

curl -X POST http://127.0.0.1:8787/komrad.log.v1.LogService/GetLogLines \
  -H 'Content-Type: application/json' \
  -d '{
  "trace_id": "<trace_id>"
}'

Request#

GetLogLinesRequest#

FieldTypeDescription
trace_idstring*

at most 128 characters

The trace id to read, from a failed call or from list_recent_traces.

Response#

GetLogLinesResponse#

FieldTypeDescription
linesLogLine[]

Every line written under the trace id, in the order they were written.

Types#

LogLine#

LogLine is one line of the server's log.

FieldTypeDescription
timetimestamp

When the line was written.

levelstring

The line's severity, such as INFO or ERROR.

messagestring

The line's message.

fieldsjson

The line's other fields, under the keys the log gives them.