list_activities
List every activity in a course, grouped by type such as quizzes, assignments, and forums. Supply a course ID to receive a JSON mapping of activity types to their items for a clear course structure.
Instructions
List all activities in a course, grouped by type (quiz, assign, forum, etc.).
Args: course_id: The Moodle course ID.
Returns: JSON object mapping activity type -> list of activities.
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": "list_activities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| course_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |