moodle_read_file
Reads text from Moodle course files (PDF, Word, PowerPoint, Excel, ZIP, HTML, plain text) for analysis and supports offset pagination for long documents.
Instructions
Read the text of a course file for analysis: PDF, Word (.doc, .docx), PowerPoint (.ppt, .pptx), Excel (.xlsx), .zip archives, HTML and plain text. Scanned PDFs and other archive types have no readable text: use moodle_download_file for those. Long files come in parts: pass next_offset to continue.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "moodle_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A file url returned by another moodle_ tool. | |
| site | No | Site key or URL. Optional when only one site is logged in. | |
| offset | No | Character to start from. | |
| max_chars | No |