remote_file_download
Download a file from a remote server to your local machine via SSH. Retrieve logs, configs, or any remote file for analysis.
Instructions
Download a file from the remote server to local machine.
Works with both SSH2 and child process sessions:
SSH2: Uses SFTP for efficient binary transfer
Child process: Uses base64 encoding through the shell
Example: Download logs or config files from a server.
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": {
"remotePath": "<remotePath>",
"localPath": "<localPath>"
},
"name": "remote_file_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | Destination path on local machine (supports ~ expansion) | |
| sessionId | No | Session ID (optional, defaults to active session) | |
| remotePath | Yes | Path to file on remote server |