Live transcript
- 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
| Field | Type | Description |
|---|---|---|
call_idRequired | string | The call id: the LiveKit room name. With the key, it identifies the call |
channel | "voice" | Channel (only voice for now) |
turnsRequired | object[] | New turns (or repeated: ignored by seq) |
turns[].seqRequired | integer | Turn number (0, 1, 2…): never stored twice |
turns[].roleRequired | "user" | "assistant" | "system" | |
turns[].textRequired | string | |
turns[].t | number | Second of the call |
Every tool also accepts lang (es | en) for the language of the text answer.
Output
| Field | Type | Description |
|---|---|---|
conversation_idRequired | number | |
acceptedRequired | number | Turns stored now |
duplicatesRequired | number | Turns already stored (same seq) |
completedRequired | boolean | true = the call already ended; nothing is stored |
Examples
Example 1: Two turns
Call
{
"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
{
"conversation_id": 81234,
"accepted": 2,
"duplicates": 0,
"completed": false
}Equivalent JSON-RPC call (POST /mcp)
{
"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
}
]
}
}
}