download_file
Downloads a course file from eNauczanie PG Moodle to the local downloads folder using its file URL and course ID, then returns the saved path.
Instructions
Download a course file (fileurl from get_course_contents) into the local downloads directory and return its path.
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": {
"fileurl": "<fileurl>",
"course_id": "<course_id>"
},
"name": "download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileurl | Yes | ||
| course_id | Yes |