download_file
Fetch remote files (logs, reports, backups) via SFTP and save them to a local directory on the machine running the MCP server.
Instructions
Download a remote file to a local path (on the machine running this MCP server) via SFTP.
When to use: Fetch logs, reports, or backups from the remote. When NOT to use: Avoid very large downloads (>100MB) unless you verified size first.
Example: download_file(connection_id="srv1", remote_path="/var/log/syslog", local_path="./logs/")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local_path | No | Local destination path. Defaults to ~/.config/remoteshell/downloads/<connection_id>/ | |
| remote_path | Yes | Path to the remote file to download | |
| connection_id | Yes | Unique identifier of the server connection |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||