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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quiz_id | Yes | ||
| preflight_data | No | ||
| start_if_needed | No |