attachment_download
Downloads a PKU teaching-site attachment URL to a local destination, reusing identical files instead of overwriting, and returns the local path, SHA-256 hash, and file size.
Instructions
下载一个教学网附件(url 来自其他工具的结果)到 dest 目录,默认 ~/PKU/下载。
不覆盖同名文件,内容相同则复用已有文件。返回本地路径、SHA-256 和大小。
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": "attachment_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| dest | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||