Upload Local File or Directory to Remote
ssh_uploadCopy a local file or directory to a remote host over pooled SFTP, keeping file bytes out of the LLM context. Optionally verify SHA-256, preserve permissions, or exclude paths.
Instructions
Stream a local file or directory directly to a remote host without passing file bytes through the LLM context. Uses SFTP over the pooled connection with automatic pipe fallback for hosts without sftp-server. Defaults to overwrite=false and verifies SHA-256 on single files.
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": {
"target": "<target>",
"local_path": "<local_path>",
"remote_path": "<remote_path>"
},
"name": "ssh_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | SSH target as configured host alias, host, user@host, user@host:port, or [ipv6]:port. Never include remote paths in target. | |
| exclude | No | Optional directory names or glob patterns to exclude during recursive upload | |
| overwrite | No | Must be true to overwrite existing remote file(s) (default: false) | |
| recursive | No | Required when uploading a directory (default: false) | |
| local_path | Yes | Local source file or directory path | |
| remote_path | Yes | Explicit remote absolute path (e.g. /etc/nginx/nginx.conf or C:\Services\app.json) or home-relative ~/... path. Bare relative paths are rejected. | |
| verify_checksum | No | Verify SHA-256 checksum on remote after single-file upload (default: true) | |
| preserve_permissions | No | Preserve local POSIX mode bits on remote Unix target (default: false) |