read_file
Extract text from Moodle course files—PDFs, Word, PowerPoint, HTML, code, plain text—using a file reference or pluginfile URL; optionally select PDF pages or PPT slides.
Instructions
Text content of a course file (PDF, Word, PowerPoint, HTML, code, plain text).
`file` is a ref from get_course_outline/get_announcements (or a Moodle pluginfile URL).
`pages` selects PDF pages or PowerPoint slides, e.g. "1-5" or "2,7-9".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| pages | No | ||
| course | Yes | ||
| max_chars | No |