sftp_download
Transfers a file from a remote host to a local destination over SFTP using an existing SSH connection; optionally overwrites the local file if it already exists.
Instructions
Download a file from a remote host via SFTP.
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": {
"connectionId": "<connectionId>",
"remotePath": "<remotePath>",
"localPath": "<localPath>"
},
"name": "sftp_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | Destination path on the local machine | |
| overwrite | No | Overwrite the local file if it exists (default false) | |
| remotePath | Yes | Path to the file on the remote host | |
| connectionId | Yes | Connection ID from ssh_connect |