ssh_download_file
Download a file from a remote SSH host to a local destination via SFTP. Parent directories are created automatically.
Instructions
Download a file from a remote SSH host to the local machine via SFTP.
The local parent directory is created automatically if needed.
Args: alias: Source host alias. remote_path: Absolute POSIX path of the file on the remote host. local_path: Absolute destination path on the local machine, in the format native to the machine running the MCP server (e.g. 'C:\Users\me\downloads\file.txt' on Windows, '/home/me/downloads/file.txt' on Linux/macOS). Call ssh_get_local_info first if you are unsure which format to use.
Returns: Success message with byte count, or an error description.
Examples: - Fetch a log: remote_path='/var/log/app.log', local_path='/tmp/app.log' - Pull a DB dump: remote_path='/backups/db.sql.gz', local_path='/tmp/db.sql.gz'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | Yes | ||
| remote_path | Yes | ||
| local_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |