Answer the call agent's mid-call question
answer_questionDelivers the answer to a question_pending question (from wait_for_answer or wait_for_call) to the live call agent, which relays it on the call: the user's own reply, or one the assistant gives from what the user already said in the conversation for this call. Inputs: call_id, question_id, the answer verbatim, and answered_by. The call agent holds the line only ~20 seconds per question. Repeats: answering the same question again sends nothing more; it returns an error saying the question is no longer waiting (answered, timed out or unknown). On success the call carries on, and wait_for_call keeps following it (from the last cursor). answered_by says who the answer came from: "user" (the default) for the user's own reply, or "assistant" for an answer the assistant gave from what the user had already said in the conversation for this call. An answer labelled "assistant" is refused with error user_must_answer, and nothing is sent, when the question asks for a secure detail or an identity check (date of birth, PIN, password, security question or word, memorable information, one-time code, account, bank or card number, or digits of one) or the answer holds one; the question keeps waiting for the user. Order numbers, booking references and similar identifiers are passed on, held encrypted like any secure detail in an answer. The check applies only to answers labelled "assistant". An answer labelled "assistant" is at most 300 characters (longer: error answer_too_long) and is shown to the user in full in user_status. Results carry user_status (a sentence written for the end user, with no tool names or ids) and usually agent_next (the next step in the call flow, for the assistant; it names tools and ids and is not written for the end user).
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": {
"call_id": "<call_id>",
"question_id": "<question_id>",
"answer": "<answer>"
},
"name": "answer_question"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answer | Yes | The answer, verbatim: the user's reply, or the assistant's from what the user already said for this call. | |
| call_id | Yes | The call this question belongs to. | |
| answered_by | No | Who the answer came from: "user" (their own reply, the default) or "assistant" (taken from what the user already said in the conversation for this call). | user |
| question_id | Yes | The question_id from the question_pending result. |