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.
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": {
"local_path": "<local_path>",
"remote_path": "<remote_path>"
},
"name": "ssh_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local_path | Yes | ||
| remote_path | Yes | ||
| create_dirs | No | ||
| host | No |