sftp_download
Download a remote file or directory to your local machine via SFTP; it detects whether the target is a file or directory and recursively retrieves entire directory contents.
Instructions
Download a remote file or directory to the local machine via SFTP. Automatically detects file vs directory. For directories, recursively downloads all contents.
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 | Absolute path on the local machine | |
| remotePath | Yes | Absolute path on the remote host | |
| connectionId | Yes | The connection ID |