log

Write one line to komrad's log, tagged to an agent.

Agentwritesnot idempotentMCP tool

A script komrad runs against an agent has its own stdout and stdin sent nowhere, and its stderr read back only when it fails, so this is how a running script, or anything else acting on an agent's behalf, says what it is doing on purpose. id defaults to your own, which is in the KOMRAD_AGENT_ID environment variable; give another agent's id to log about it instead. script names the script whose run this line belongs to, which is in KOMRAD_SCRIPT.

Calling it#

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

Request#

LogRequest#

FieldTypeDescription
idstring

Which agent the line is about, or unset for the caller's own.

messagestring

One line for komrad's log, which is how a script says what it is doing.

required, at most 2048 characters

scriptstring

Which script's run the line belongs to, which a running script reads from KOMRAD_SCRIPT.

at most 255 characters

Response#

Empty#

No fields.