create_forum
Create or update a Moodle forum in a course section, idempotent by slug. Supports types like discussion, announcement, Q&A, and more.
Instructions
Create or update a forum (discussion, announcement, Q&A, etc.) in a course section. Idempotent by slug. Default: hidden forum of type "general". Requires the plugin companion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| slug | Yes | Stable key used to build the forum idnumber | |
| intro | No | ||
| visible | No | ||
| course_id | Yes | ||
| forum_type | No | Forum type. Use "news" for announcement forums (auto-subscribed). | general |
| section_num | No | Section number (0 = General, 1..N = topics) |