List Course Sections
list_sectionsRetrieve a course's sections and their IDs to resolve section-specific due dates, enrollments, and grading counts without fetching full rosters.
Instructions
List the sections of a course, returning each section's id, name, course_id, start_at, end_at and restrict_enrollments_to_section_dates. Use it to resolve the section ID that create_assignment_override needs for a section-specific due date, that enroll_user takes as course_section_id, and that the needs_grading_count_by_section option on list_assignments reports against; use list_course_enrollments or list_course_users for the people in a section rather than the sections themselves, or get_course with include: ['sections'] when you also need other course fields in the same call. Fetches every page (100 per request) and fails with a 'Results are incomplete' error instead of silently truncating. This tool never requests Canvas's student roster include, so no student names are returned. The SIS fields (sis_section_id, sis_course_id, integration_id) appear only for callers with SIS read permission, and Canvas silently drops the total_students and permissions extras — rather than erroring — unless the caller can read the course roster or grades. search_term must be at least 2 characters; Canvas ignores shorter ones. Requires read access to the course.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | Extra fields to include on each section (Canvas include[] param) | |
| course_id | Yes | The Canvas course ID | |
| search_term | No | Return only sections whose name matches this term (at least 2 characters) |