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.
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. |