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