moodle_quiz_submit_attempt
Finish a Moodle quiz attempt for grading when the user requests submission, saving supplied answers first. Confirm the quiz name and review the summary because finishing is usually irreversible.
Instructions
Finish an attempt for grading when the user requests submission. Read the summary first. Finishing cannot usually be undone; confirm_name must identify the quiz. Saves any supplied answer fields before finishing.
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>",
"quizid": "<quizid>",
"confirm_name": "<confirm_name>"
},
"name": "moodle_quiz_submit_attempt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| site | No | ||
| quizid | Yes | ||
| attemptid | Yes | ||
| confirm_name | Yes | ||
| preflightdata | No | Access declarations required by Moodle. Enter passwords in the browser, never in chat. |