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.
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>",
"slug": "<slug>",
"name": "<name>"
},
"name": "create_forum"
}
}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) |