create_section
Create a Moodle course section with name, summary, position, and visibility. Avoids duplicates: reusing an existing name returns the current section.
Instructions
Create a new section in a course with a given name, summary, position and initial visibility. Idempotent by name: reusing an existing section name returns that section instead of creating a duplicate.
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>",
"name": "<name>"
},
"name": "create_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| summary | No | ||
| visible | No | ||
| position | No | Position in the course section list; 0 appends at the end. | |
| course_id | Yes |