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>"
}'komrad rpc log \
--message <string>{
"name": "log",
"arguments": {
"message": "<message>"
}
}Offered by the komrad MCP server to implementer, reviewer, orchestrator agents.
Request#
LogRequest#
| Field | Type | Description |
|---|---|---|
id | string | Which agent the line is about, or unset for the caller's own. |
message | string | One line for komrad's log, which is how a script says what it is doing. required, at most 2048 characters |
script | string | Which script's run the line belongs to, which a running script reads from KOMRAD_SCRIPT. at most 255 characters |
Response#
Empty#
No fields.