download_file
Downloads a file from a remote server to your local machine over SFTP using a saved SSH connection. Specify the connection, remote path, and local destination.
Instructions
Download a file from a remote server via SFTP.
Parameters:
connection: Name of the connection (from list_connections)
remote_path: Path to the file on the remote server
local_path: Destination path on the local machine
Example usage: download_file("web1", "/var/log/nginx/error.log", "/tmp/error.log")
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": {
"connection": "<connection>",
"remote_path": "<remote_path>",
"local_path": "<local_path>"
},
"name": "download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | Yes | Name of the SSH connection to use | |
| local_path | Yes | Destination path on the local machine | |
| remote_path | Yes | Path to the file on the remote server |