Find Duplicate Files
find_duplicate_filesIdentify duplicate files in a Canvas course's Files area by matching name and size, then clean them up with the delete_file tool.
Instructions
Find duplicate files in a course's Files area — copies with the same name and size, typically left behind by repeated course copies. Each duplicate gets flagged separately by accessibility checkers, so this surfaces them for cleanup with the existing delete_file tool. Groups by display name + size (Canvas file listings carry no content hash), so same-name files of different sizes are not considered duplicates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| course_id | Yes | The Canvas course ID | |
| folder_id | No | Optional Canvas folder ID to scope the search to that folder and its subfolders |