ssh_download
Download files or directories from a remote server via SFTP using a glob pattern for multiple files or recursive mode for entire directories.
Instructions
Download from a remote server over SFTP. Supports a single file, a glob pattern within a remote directory (e.g. /var/log/*.log) which downloads all matches into localPath, or a whole remote directory when recursive=true.
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": {
"serverAlias": "<serverAlias>",
"remotePath": "<remotePath>",
"localPath": "<localPath>"
},
"name": "ssh_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preserve | No | Preserve file mode and timestamps (scp -p) | |
| localPath | Yes | Destination path/directory on the local system | |
| recursive | No | Required to download a directory and its contents | |
| remotePath | Yes | Remote file, directory, or glob pattern (e.g. /var/log/*.log) | |
| serverAlias | Yes | The server alias |