ssh_upload
Upload a local file to a remote server over SFTP. Handles binary files and large transfers without loading into memory.
Instructions
Upload a local file to the remote server (binary-safe, via SFTP/scp).
Use this for any file type — including binary files such as SQLite .db databases, images, or archives — that ssh_write_file (text/UTF-8) cannot carry safely. The file is streamed over SFTP, so large files transfer without loading into memory.
Args: local_path: Path to the file on THIS machine (the one running the server). remote_path: Destination path on the remote server. create_dirs: If true, create the remote parent directory first. host: SSH host alias from config. Uses default if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local_path | Yes | ||
| remote_path | Yes | ||
| create_dirs | No | ||
| host | No |