ssh_upload_file
Upload a local file, including binary data, to an exact remote path over SFTP using a host ID; set overwrite to replace an existing file.
Instructions
Stream one local file, including binary data, to an exact remote path via SFTP. Local paths are relative to the MCP server startup directory. Transfers directly without a confirmation dialog. overwrite defaults to false.
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": {
"hostId": "<hostId>",
"localPath": "<localPath>",
"remotePath": "<remotePath>"
},
"name": "ssh_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostId | Yes | Required stable host ID returned by ssh_list_hosts. Names are not accepted. | |
| localPath | Yes | ||
| overwrite | No | ||
| remotePath | Yes |