Upload a local file to the remote host (SFTP)
upload_fileUpload a local file to a remote host via SFTP using specified local and remote paths. Optionally set file permissions or create missing parent directories.
Instructions
Upload a single local file to the remote host via SFTP. localPath and remotePath are taken from arguments only — no paths are hardcoded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Optional POSIX mode bits, e.g. 420 = 0o644. | |
| localPath | Yes | Absolute or relative local file path. | |
| remotePath | Yes | Absolute remote file path. | |
| mkdirParents | No | If true, create remote parent directories as needed. | |
| connectionName | Yes |