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.
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). |