append_log
Append a streaming progress log line to the current agent conversation. Required: conversationId (the AiConversation this agent session belongs to), lineNum (monotonic integer the agent maintains), level (INFO/WARN/ERROR/DEBUG or any string <=8 chars), text (the log line up to 4000 chars). Optional taskId attaches the line to a specific task and triggers a real-time UI broadcast so humans see it land. No undo — log lines are append-only.
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": {
"conversationId": "<conversationId>",
"lineNum": "<lineNum>",
"level": "<level>",
"text": "<text>"
},
"name": "append_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Log line content, up to 4000 chars. | |
| level | Yes | INFO / WARN / ERROR / DEBUG (or any string up to 8 chars). | |
| taskId | No | Optional task this line is about. | |
| lineNum | Yes | Monotonic integer per conversation. | |
| conversationId | Yes | AiConversation id (the agent session). | |
| idempotencyKey | No | Optional idempotency key. Pass a stable unique value (e.g. a UUID) to make this create safe to retry: calling again with the same key within 24h - even from a new session after a reconnect - replays the original result and creates no duplicate. Org-scoped; works across conversations. |