Import questions (GIFT / XML / Aiken)
moodle_import_questionsImport questions from GIFT, Moodle XML, Aiken, missing-word, or Cloze text into a Moodle question category and return the new question IDs.
Instructions
Imports questions from text in GIFT, Moodle XML, Aiken, missing-word or Cloze (multianswer) format into a category. Supports every question type. Returns the new question ids.
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>",
"format": "<format>",
"content": "<content>"
},
"name": "moodle_import_questions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmid | No | Quiz cmid: use the quiz's own question bank instead of the course one | |
| format | Yes | ||
| content | Yes | ||
| courseid | No | Course id: use the course question bank | |
| category_id | Yes | ||
| matchgrades | No | How to handle grades not in Moodle list (default nearest) |