canvas_list_courses
List the Canvas courses available to the authenticated instructor and return course IDs needed for other tools. Filter by enrollment state or role to find active, completed, or pending courses.
Instructions
List the courses the authenticated user can see.
Start here when you do not know the course id. The id in the output is what every other tool's course_id parameter wants.
Args: enrollment_state: active (default), completed, or invited_or_pending. enrollment_type: filter by your role — teacher, ta, student, observer, designer. Empty for all roles.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "canvas_list_courses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enrollment_type | No | ||
| enrollment_state | No | active |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |