ssh_upload
Uploads a local file to a remote server over SFTP, overwriting any existing file at the destination. Requires the file to exist and the remote path to be writable by the SSH user.
Instructions
Uploads one local file to a remote destination path over SFTP on the named server, overwriting any existing remote file at that path. Mutates remote state and is not idempotent beyond replacing the target. Creates no backup. Requires the local file to exist. Does not use sudo, so the remote path must be writable by the configured SSH user. This tool is blocked entirely on servers set to readonly or restricted security mode. For directory trees use ssh_sync instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | Yes | Server name | |
| localPath | Yes | Local file path | |
| remotePath | Yes | Remote destination path |