Answer question
answer_questionSubmit a short-answer or multiple-choice response to a Google Classroom question post and turn it in; first retrieve the item to confirm its question type and choices.
Instructions
Submit your answer to a question post (short answer or multiple choice). This also turns it in. Use get_item first to see the question type and choices. NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.
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": {
"item": "<item>",
"answer": "<answer>"
},
"name": "answer_question"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | Post/assignment id, or its classroom.google.com link | |
| type | No | Detected from the question when omitted | |
| answer | Yes | Your answer text, or the exact text of the chosen option | |
| course | No | Course id, link or name. Optional when `item` is a full Classroom link (the course is read from it) |