Get question
moodle_get_questionRetrieves a full quiz question definition as Moodle XML, including answers, fractions, feedback and settings, so you can inspect or back up question data; optionally includes embedded images.
Instructions
Full definition of a question (text, answers, fractions, feedback, settings) as Moodle XML. Embedded images are omitted unless include_files=true.
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": {
"question_id": "<question_id>"
},
"name": "moodle_get_question"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmid | No | Quiz cmid: use the quiz's own question bank instead of the course one | |
| courseid | No | Course id: use the course question bank | |
| question_id | Yes | ||
| include_files | No |