Answer a widget
muse_answer_widgetAnswer a quick-reply widget (kind option) from the agent's message: send the index of the chosen option (from 0), or your own text instead. The answer is a new message in the chat: unless wait is false, follows the reply up to ~50 s like muse_chat. POST /chats/{chatId}/widgets/{widgetId}.
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": {
"chatId": "<chatId>",
"widgetId": "<widgetId>"
},
"name": "muse_answer_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Your own reply instead of an option, up to 5000 characters. | |
| wait | No | Follow the reply up to ~50 s (default true). | |
| chatId | Yes | The chatId. | |
| option | No | The index of the chosen entry in the widget's options, from 0. Send exactly one of option and text (both is refused). | |
| widgetId | Yes | The widgetId. |