Export a question category
moodle_export_questionsExports every question in a Moodle question category as GIFT or Moodle XML, enabling backup, reuse, or migration of quiz content.
Instructions
Exports all questions of a category in GIFT (compact, readable) or Moodle XML (complete).
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": {
"category_id": "<category_id>"
},
"name": "moodle_export_questions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmid | No | Quiz cmid: use the quiz's own question bank instead of the course one | |
| format | No | ||
| courseid | No | Course id: use the course question bank | |
| category_id | Yes | ||
| include_files | No |