list_courses
List all courses visible to your Moodle API token, returning IDs, names, and category details. Use optional filters by category, limit, and offset to find specific courses without retrieving the full list.
Instructions
List all LMS courses visible to the configured API token. Returns course ID, full name, short name, category, category path, and visibility. Supports filtering and pagination via categoryid, categoryname, limit, and offset. When categoryname is used, it must match an existing category name exactly; if multiple categories share that name, the tool will ask for the ID instead of guessing. Use limit and offset for subset requests like first 10 or first 50. Do not request the full course list unless the user explicitly asks for all courses. Use this to discover available courses before drilling into details. Prefer exact category IDs from list_categories when available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of courses to return | |
| offset | No | Number of courses to skip before returning results | |
| categoryid | No | Filter courses by category ID | |
| categoryname | No | Filter courses by exact category name |