get_quiz_qcm_content
Access quiz questions by retrieving the rendered QCM content from the latest unfinished attempt, with the option to create a new attempt if needed.
Instructions
Return rendered QCM/quiz questions from the current attempt.
The tool reuses the latest unfinished attempt. If no unfinished attempt
exists, it returns requires_attempt_creation=true unless
start_if_needed is explicitly true.
Args: quiz_id: quiz instance id (see list_quizzes) start_if_needed: create a new attempt only when no unfinished attempt exists preflight_data: optional Moodle preflight data, e.g. quiz password entries
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": {
"quiz_id": "<quiz_id>"
},
"name": "get_quiz_qcm_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quiz_id | Yes | ||
| preflight_data | No | ||
| start_if_needed | No |