sftp_upload
Upload a local file to a remote host over SFTP using an existing SSH connection ID, and optionally set Unix permission bits.
Instructions
Upload a local file to a remote host via SFTP.
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 |
|---|---|---|---|
| mode | No | Unix permission bits for the remote file (e.g. 420 for 0o644) | |
| localPath | Yes | Absolute path to the local file to upload | |
| remotePath | Yes | Destination path on the remote host | |
| connectionId | Yes | Connection ID from ssh_connect |