learnjcu_download_attachment
Downloads a course content attachment to the local Downloads/learnjcu folder and returns the saved file path for direct access.
Instructions
Download a file from a content item (an attachment id, or an "embedded-N" id from learnjcu_get_content) into the local Downloads/learnjcu folder 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": {
"courseId": "<courseId>",
"contentId": "<contentId>",
"attachmentId": "<attachmentId>"
},
"name": "learnjcu_download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Saved account to use (see learnjcu_list_accounts). Only needed when several accounts are saved and the user has not chosen one yet. | |
| courseId | Yes | Course primary id like "_123456_1" (from learnjcu_list_courses), a subject code like "BU2001", or the full course code | |
| contentId | Yes | ||
| attachmentId | Yes |