MCPDocumentation
On this page

Voice agents

Live transcript

call_log
Direct write
Permission required
agent:runtime (agent keys only)

When to use it

Optional. Sends the conversation turns as they happen: the panel shows the call live and, if call_end is lost, the transcript is not. Each turn has its seq; repeating a seq never duplicates it. call_end carries the full transcript and replaces call_log's.

Input

FieldTypeDescription
call_idRequiredstringThe call id: the LiveKit room name. With the key, it identifies the call
channel"voice"Channel (only voice for now)
turnsRequiredobject[]New turns (or repeated: ignored by seq)
turns[].seqRequiredintegerTurn number (0, 1, 2…): never stored twice
turns[].roleRequired"user" | "assistant" | "system"
turns[].textRequiredstring
turns[].tnumberSecond of the call

Every tool also accepts lang (es | en) for the language of the text answer.

Output

FieldTypeDescription
conversation_idRequirednumber
acceptedRequirednumberTurns stored now
duplicatesRequirednumberTurns already stored (same seq)
completedRequiredbooleantrue = the call already ended; nothing is stored

Examples

Example 1: Two turns

Call

JSON
{
  "name": "call_log",
  "arguments": {
    "call_id": "call-_+34600111222_abc123",
    "turns": [
      {
        "seq": 0,
        "role": "assistant",
        "text": "Hola, soy Joana del CEM Joan Miró. ¿En qué te ayudo?",
        "t": 0.4
      },
      {
        "seq": 1,
        "role": "user",
        "text": "Quería saber el horario de la piscina",
        "t": 4.1
      }
    ]
  }
}

Response

JSON
{
  "conversation_id": 81234,
  "accepted": 2,
  "duplicates": 0,
  "completed": false
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "call_log",
    "arguments": {
      "call_id": "call-_+34600111222_abc123",
      "turns": [
        {
          "seq": 0,
          "role": "assistant",
          "text": "Hola, soy Joana del CEM Joan Miró. ¿En qué te ayudo?",
          "t": 0.4
        },
        {
          "seq": 1,
          "role": "user",
          "text": "Quería saber el horario de la piscina",
          "t": 4.1
        }
      ]
    }
  }
}