moodle_download_file
Download course or assignment files from Moodle file URLs. Returns a saved local path or file content depending on server type, letting AI assistants retrieve and process course materials.
Instructions
Download a course or assignment file from a Moodle file URL. A local server saves it to a temporary folder and returns its path; a hosted server returns the file's content.
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_download_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. |