Assignment files
get_assignment_filesLists the files attached to a Canvas assignment’s instructions—including name, type, size, and link—so students can find handouts and rubrics without downloading them.
Instructions
List the files linked in one Canvas assignment's instructions, such as a handout or a rubric, with the file name, type, size and a link. Pass course_id as the Canvas course ID or as the course name and assignment as the assignment ID or its name. It does not download or open the files. Example: "What files come with the Lab 4 assignment in Networking 1?"
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>",
"assignment": "<assignment>"
},
"name": "get_assignment_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| course_id | Yes | Canvas course ID, the number Canvas shows for the course, or the course name such as "Networking 1". Ask get_my_courses for the list of IDs and names. | |
| assignment | Yes | The assignment ID or the assignment name, for example Lab 4. Ask get_assignments for the list. |