file_upload
Upload a local file to a remote host path over SFTP, report byte counts, and block existing destinations unless overwrite is enabled.
Instructions
Upload a local file (absolute path) to a remote path on a host over SFTP and report byte counts; auth/network failures appear as AUTH_FAILED/HOST_UNREACHABLE. Refuses an existing remote destination unless overwrite:true.
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": {
"remotePath": "<remotePath>",
"localPath": "<localPath>"
},
"name": "file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| localPath | Yes | Absolute local file path | |
| overwrite | No | Replace the remote file if it already exists (default false) | |
| remotePath | Yes | Remote destination path |