Course file
get_fileDownloads a Moodle course file from its file_url and returns readable text for supported plain text, HTML, and PDF resources.
Instructions
Answers 'what does this course file say?' Downloads one course file resource, such as a PDF, slide deck or handout, from its file_url. Supported types: plain text, HTML and PDF. Plain text and HTML files come back as readable text. A PDF with readable text comes back as text, and a PDF with no extractable text comes back with its file name, a link with your key removed and a note to open it in Moodle. Any other file type is not supported and comes back with its file name, a link with your key removed and a note that only plain text, HTML and PDF are supported, with a note to open it in Moodle. Only a link on your school's Moodle site is downloaded, so your key is never sent to another server. Input: file_url, the link from get_course_content. Ask: 'Read the Week 3 slides PDF.'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_url | Yes | URL of the course file to download. Use the link from get_course_content. |