list_my_courses
Retrieve the list of courses where a specified Moodle user is enrolled. Pass the user ID to get results, with optional limit and hidden-course filters.
Instructions
List courses where a user is enrolled. Accepts userid (e.g. obtain from get_site_info for the bot, or pass a student_id-mapped Moodle userid).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| userid | Yes | Moodle user id whose courses to list. Use get_site_info / core_webservice_get_site_info to find the bot user id. | |
| only_visible | No | If true, filter out hidden (archived) courses. |