MagicInterview: coach line
magicinterview_coach_lineLive-call coaching in one call: give the line that was just said and who said it; MagicInterview appends it to the conversation as a turn (saveTurn, default true) and returns what to say next. Returns action (compose, refine, continue or hold), answer (the words to say; empty when action is hold), cue, latencyMs and the saved turn id. Uses the same coach, Pro check, model routing and guards as the live app. Loop it for every new line during a call; pass the returned turnId again to retry a failed call without duplicating the line.
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>",
"text": "<text>"
},
"name": "magicinterview_coach_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | Alias of text; send text. | |
| save | No | Alias of saveTurn; send saveTurn. | |
| text | Yes | The line that was just said. Aliases: message, question, line. | |
| origin | No | manual | |
| turnId | No | Idempotency key for the line; reuse it when retrying. | |
| content | No | Alias of text; send text. | |
| message | No | Alias of text; send text. | |
| speaker | No | Who said it: interviewer (them) or candidate (the user). | interviewer |
| question | No | Alias of text; send text. | |
| saveTurn | No | Append the line and the answer to the saved conversation. Alias: save. | |
| coachModel | No | ||
| conversationId | Yes |