create_forum_announcement
Post an announcement to a Moodle course forum. Uses the course Announcements forum by default, or target a specific forum with its ID.
Instructions
Post a new discussion in a course forum. If forum_id is omitted, uses the course Announcements (type=news) forum.
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>",
"subject": "<subject>",
"message": "<message>"
},
"name": "create_forum_announcement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | No | ||
| format | No | html | |
| message | Yes | ||
| subject | Yes | ||
| forum_id | No | Specific forum id. If omitted, uses the course "Announcements" (news) forum, or the first forum in the course. | |
| course_id | Yes |