sftp_upload
Upload local files or directories to a remote host via SFTP so you can ship code, config, or binaries before running deployment commands.
Instructions
Upload a local file or directory to a remote host over SFTP. Use to ship code, config or binaries before running deploy commands. remotePath must be absolute; localPath is any readable local path. If the host sets uploadRoots, the remote path must sit inside one.
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": {
"host": "<host>",
"localPath": "<localPath>",
"remotePath": "<remotePath>"
},
"name": "sftp_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| mode | No | ||
| localPath | Yes | ||
| overwrite | No | ||
| remotePath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||