save_quiz_attempt_responses
Save in-progress answers WITHOUT finishing the attempt -- can still be changed later. UNVERIFIED against a real quiz.
Call with dry_run=True (default) first, show the preview to the
user, and only call again with dry_run=False after they explicitly
confirm.
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": {
"attempt_id": "<attempt_id>",
"responses": "<responses>"
},
"name": "save_quiz_attempt_responses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Quiz page number these responses are for. | |
| dry_run | No | If True (default), only preview saving without doing it. Call again with dry_run=False (same parameters) to actually save it. | |
| responses | Yes | Moodle question-form field name -> answer value, parsed from get_quiz_attempt_data's returned HTML. | |
| attempt_id | Yes | Attempt id, e.g. from start_quiz_attempt. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | Yes | ||
| message | Yes | ||
| preview | Yes | ||
| executed | Yes |