ssh_download_file
Retrieve a remote file over SFTP to an absolute local path. Uses pre-configured server credentials, with optional overwrite control and custom timeout settings.
Instructions
Download a remote file from the selected server through SFTP to an absolute local path. Existing local files are not overwritten by default. SSH credentials are private server-side configuration. Never ask the user for a password. Use ssh_list_servers when the user has not supplied an exact configured alias.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | Yes | Exact configured server alias returned by ssh_list_servers. | |
| timeout | No | Transfer timeout in seconds (1–3600), default 300. | |
| localPath | Yes | ||
| overwrite | No | ||
| remotePath | Yes |