下载课程附件
lexue_download_attachmentDownloads an attachment for a specified course item (assignment, courseware, or announcement) into an existing local directory while preserving files with the same name.
Instructions
把指定条目的附件下载到已存在的本地目录。保留同名的本地文件。
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>",
"title": "<title>",
"section": "<section>",
"fileName": "<fileName>",
"directory": "<directory>"
},
"name": "lexue_download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| section | Yes | ||
| courseId | Yes | 新乐学课程编号,例如 lexue_list_courses 返回的 courseId | |
| fileName | Yes | ||
| directory | Yes | 用户已指定的本地绝对路径 |