moodle_download_file
Download a Moodle file activity (PDF, slides) to your local disk using the activity URL. Returns the saved path, name, MIME type, and size.
Instructions
Download a Moodle file activity (PDF, slides, ...) to local disk.
url is the activity URL from moodle_course (kind "Arquivo"/"Resource").
Saves into directory (default: $HEIDY_DOWNLOAD_DIR or ./downloads) and
returns the saved path, name, MIME type and size. Files up to 10 MB.
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 | ||
| directory | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||