download_file
Retrieve Courseweb PDFs, lab sheets, and other course files from a Moodle resource URL, saving to a chosen directory if needed.
Instructions
Download a file from Courseweb (e.g. PDFs, lab sheets) given its resource URL
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": "download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The Moodle resource URL to download from | |
| outputDir | No | Optional: Directory to save the file. Defaults to ./downloads |