komrad

log

Write one line to komrad's log, under the caller unless id names another agent.

writesnot idempotentMCP toolAgent

A hook uses it to leave a trace.

Calling it#

curl -X POST http://127.0.0.1:8787/komrad.agent.v1.AgentService/Log \
  -H 'Content-Type: application/json' \
  -d '{
  "message": "<message>"
}'

Request#

LogRequest#

FieldTypeDescription
iduuid

The agent the line is about, by id. Unset for the caller.

messagestring*

at most 2048 characters

a log message must carry no control characters

The line to write.

scriptstring

at most 255 characters

must be a file name without a slash, a leading dot or control characters

The hook whose run the line belongs to. A running hook finds its name in KOMRAD_SCRIPT.

Response#

Empty#

No fields.