Get Assignment Files
get_assignment_filesFind and read assignment attachments in D2L Brightspace. List files with course ID, then open a specific attachment with folder and file IDs to get its text content.
Instructions
Read the files an instructor attached to an assignment: the spec or instructions PDF, a starter workbook, a rubric document. Call it with just courseId to see which assignments have attachments, then with folderId and fileId to read one. Use this when the user asks what an assignment requires, what the instructions say, or to summarize a handout. Returns the text itself. Use download_file instead when the user wants the file saved to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | Attachment file ID to read. Requires folderId. Omit to list the files without reading them. | |
| courseId | Yes | Course ID whose assignment attachments to look at. | |
| folderId | No | Assignment (dropbox folder) ID. Omit to list every assignment in the course that has attachments. | |
| maxChars | No | Maximum characters of extracted text to return. The response reports whether it was truncated. | |
| extractText | No | Extract readable text from the file. Works for PDF, DOCX, XLSX, PPTX, and plain text. |