Approve or hide a question
moderate_questionApprove a waiting question so the room sees it, or hide it so nobody does (action=approve or hide). Hide accepts only waiting (pending) questions, so an approved question cannot be hidden here; approve accepts waiting questions and questions the AI hid. Use it in rooms with human or AI moderation, where new questions wait for review; get ids from get_room_qa. An AI-hidden question can be approved only by an id you already have, because reads never return hidden questions; a question a person hid cannot be restored. Returns the question's id and new status. Needs rooms:write.
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": {
"action": "<action>",
"code": "<code>",
"question_id": "<question_id>"
},
"name": "moderate_question"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The room's six-character code (letters and digits, any case), from list_rooms or create_room. | |
| action | Yes | approve: the room sees a waiting question, or one the AI hid. hide: a waiting question is hidden and nobody sees it; only waiting questions can be hidden. | |
| question_id | Yes | The question's id, a UUID from the questions in get_room_qa's structured result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| room | Yes | ||
| host_url | Yes | ||
| join_url | Yes | ||
| question | Yes | ||
| projector_url | Yes |