Get Announcement Files
get_announcement_filesRead the text of files an instructor attached to an announcement, such as a rubric or schedule. Call with courseId to list attachments, then newsId and fileId to read one; returns the extracted text.
Instructions
Read the files an instructor attached to an announcement: prompt questions, a rubric, an updated schedule, slides. Call it with just courseId to see which announcements have attachments, then with newsId and fileId to read one. Use this when the user asks what a file attached to an announcement says. Returns the text itself. Use download_file (newsId + fileId) instead when the user wants the file saved to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | Attachment file ID to read. Requires newsId. Omit to list the files without reading them. | |
| newsId | No | Announcement (news item) ID. Omit to list every announcement in the course that has attachments. | |
| courseId | Yes | Course ID whose announcement attachments to look at. | |
| 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. |