sftp_download
Download files from a remote server to a local path using SFTP. Specify remote and local paths; optionally set server alias, host, port, username, and overwrite flag.
Instructions
从远程服务器下载文件到本地。使用 alias(推荐)或 host 指定目标服务器,单连接时可省略。
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": {
"remotePath": "<remotePath>",
"localPath": "<localPath>"
},
"name": "sftp_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remotePath | Yes | 远程文件路径(必需) | |
| localPath | Yes | 本地目标路径(必需) | |
| alias | No | 服务器别名(推荐) | |
| host | No | 服务器地址(多个活跃连接时必须指定,单连接时可省略) | |
| port | No | SSH 端口(可选) | |
| username | No | 用户名(可选,配合 host 使用) | |
| overwrite | No | 是否覆盖已存在的文件(默认 false) | |
| targetConfirmationToken | No | 服务器切换确认 token |