name: downloader description: "Download a file from a URL and save it locally."
Download a file from a given URL and save it to a specified local path. Supports any file type accessible via HTTP/HTTPS.
✅ USE this skill when:
❌ DON'T use this skill when:
| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | The URL of the file to download |
| save_path | string | No | Local path to save the file (defaults to current directory with original filename) |
小蔥技能站7w4.net發現了升級外掛。
python3 scripts/download.py --url 'https://example.com/file.png'
python3 scripts/download.py --url 'https://example.com/file.png' --save_path './downloads/image.png'
"Help me download this image."
python3 scripts/download.py --url 'https://example.com/photo.jpg'
"Download this PDF and save it to the reports folder."
python3 scripts/download.py --url 'https://example.com/report.pdf' --save_path './reports/report.pdf'
Script outputs JSON to stdout:
code = 0 — success, data contains the local file path where the file was savedcode != 0 — error, show message to the user and suggest retrying{
"code": 0,
"message": "success",
"data": "./downloads/file.png"
}
requests package: pip install requests這個 Skill 質量中規中矩,功能簡單實用,文件說明清晰易懂。優點是上手容易、引數明確,能快速完成基本的檔案下載任務。不足之處在於功能較為單一,缺少一些實用特性如下載進度顯示、下載失敗時的自動重試,以及對大檔案下載的最佳化。對於簡單的檔案下載場景夠用,但如果需要更穩定可靠的下載體驗,可能需要考慮其他方案。