upload_file
Transfers a local file to a remote server over SFTP using a named SSH connection and specified source and destination paths.
Instructions
Upload a local file to a remote server via SFTP.
Parameters:
connection: Name of the connection (from list_connections)
local_path: Path to the local file
remote_path: Destination path on the remote server
Example usage: upload_file("web1", "/tmp/config.txt", "/etc/myapp/config.txt")
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": {
"connection": "<connection>",
"local_path": "<local_path>",
"remote_path": "<remote_path>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | Yes | Name of the SSH connection to use | |
| local_path | Yes | Path to the local file to upload | |
| remote_path | Yes | Destination path on the remote server |