duplicate_section
Duplicate all modules from a source section into a new section in the same Moodle course. Specify the new section name; if it already exists, returns 'exists' to prevent duplicates.
Instructions
Duplicate all modules from a source section into a new section in the same course. New section is named per the name param. Idempotent: returns "exists" if a section with that name already exists.
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": {
"course_id": "<course_id>",
"source_section_id": "<source_section_id>",
"name": "<name>"
},
"name": "duplicate_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the new section. | |
| visible | No | ||
| course_id | Yes | ||
| source_section_id | Yes | ID of the section to duplicate (use get_course_context to find section IDs). |