submit_quiz
Submits answers to an Artemis course quiz using a two-phase preview-and-confirm flow; returns a preview first, then submits only after the user approves with a confirmation token.
Instructions
Submit a course quiz. Live quizzes use the live endpoint with submit=true. A quiz that has ended uses practice mode. A quiz that has not opened is refused. Two-phase: without confirmationToken this returns a preview and does not submit. Show the preview to the user and send the token only after they explicitly approve. Exam quizzes are refused.
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": {
"exerciseId": "<exerciseId>",
"answers": "<answers>"
},
"name": "submit_quiz"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answers | Yes | ||
| exerciseId | Yes | ||
| confirmationToken | No |