Read a course file as text
bb_read_fileExtract text from lecture notes and handouts in Blackboard, including linked Google Docs/Slides/Sheets and PDFs page-by-page. Read course files without flooding context.
Instructions
Downloads a file attached to a content item and extracts its text. Also resolves content items that merely LINK to a Google Slides/Docs/Sheets document (common for lecture decks) by fetching the provider export, so reading works the same either way. PDFs are returned a page-window at a time (use fromPage to continue), so a long document will not flood the context. Handles PDF, HTML, and plain-text/code/CSV; Office formats download but cannot be extracted. This is the tool to use to actually read lecture notes or a handout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | For externally-linked documents (Google Slides/Docs/Sheets), the export format: txt (default, cheapest), pdf, pptx, docx, csv, xlsx. | |
| courseId | Yes | Course id, e.g. "_12345_1". | |
| fileName | No | When the item has several files, pick by name substring. | |
| fromPage | No | First PDF page. Default 1. | |
| maxChars | No | Character ceiling for the returned window. Default 20000. | |
| maxPages | No | PDF pages per call. Default 15. | |
| contentId | Yes | Content item id holding the file. | |
| charOffset | No | For non-paginated formats, continue from this character offset. |