download_file
Retrieve a file from a remote server and save it to a local path via SFTP, using the remote and local paths.
Instructions
Download a file from the remote server to local via SFTP.
Args: remote_path: Absolute file path on the remote server. local_path: Destination absolute local path (on the machine running this MCP server). host_name: Named host from SSH_HOSTS config; uses default host if omitted.
Returns: Success message with transferred file size, or error details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host_name | No | ||
| local_path | Yes | ||
| remote_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |