moodle_quiz_solve
Saves answers for one Moodle quiz page using question numbers or choice labels, letting you prepare responses without submitting the attempt.
Instructions
Save answers for one quiz page, using question numbers or choice labels.
answers maps a question number (for example "1") to a choice label/value
("b", "4", "True") or a list for multiple-response questions, and/or
a raw Moodle input name to its value. It saves the page; it does not submit
the attempt. Show the questions and proposed answers to the user first.
Args: attemptid: quiz attempt id. answers: question-number/label map, or raw input-name map. page: optional zero-based page number.
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": {
"attemptid": "<attemptid>",
"answers": "<answers>"
},
"name": "moodle_quiz_solve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| answers | Yes | ||
| attemptid | Yes |