download_file
Downloads a SmartLMS course file to the server's download directory and returns its path; accepts a pluginfile URL or resource cmid.
Instructions
Download a course file into the server's download 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": {
"target": "<target>"
},
"name": "download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | pluginfile.php URL from another tool, or a resource cmid |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | Yes | ||
| size | Yes |