sftp_upload
Upload a local file to a remote host over SFTP using an existing SSH connection.
Instructions
[SSH Operations] Upload file to remote host via SFTP
Example usage:
{
"connectionId": "raspberry-pi",
"localPath": "C:\\data\\file.txt",
"remotePath": "/home/pi/file.txt"
}Security: Validates local file exists. Remote path must be absolute.
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": {
"connectionId": "<connectionId>",
"localPath": "<localPath>",
"remotePath": "<remotePath>"
},
"name": "sftp_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | Absolute path to local file to upload | |
| remotePath | Yes | Absolute path on remote host where file will be uploaded | |
| connectionId | Yes | ID of the SSH connection to use |