download_file
Download files from remote servers to your local system using SFTP protocol. Specify remote and local paths to transfer files securely over SSH connections.
Instructions
使用SFTP协议从远程服务器下载文件到本地
Args:
remote_path: 远程服务器文件路径(绝对路径)
local_path: 本地文件保存路径
推荐使用绝对路径以避免路径解析问题
如果使用相对路径,将基于MCP服务器的工作目录进行解析
timeout: 传输超时时间(秒),默认60秒
connection_name: SSH连接名称,如果不指定则使用默认连接
Returns:
Dict包含下载结果:
- success: 是否成功下载
- remote_path: 远程文件路径
- local_path: 本地文件路径(转换为绝对路径后)
- file_size: 文件大小(字节)
- connection: 使用的连接名称
- error: 错误信息(如果有)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remote_path | Yes | ||
| local_path | Yes | ||
| timeout | No | ||
| connection_name | No |