ssh_upload_file
Upload a local file to a remote host using SFTP. Provide session ID, local path, and remote destination to transfer files securely.
Instructions
Upload a local file to the remote host via SFTP.
Args: session_id: The session ID returned by ssh_connect. local_path: Path to the file on the local machine. remote_path: Destination path on the remote host.
Returns: Confirmation message with file size.
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": {
"session_id": "<session_id>",
"local_path": "<local_path>",
"remote_path": "<remote_path>"
},
"name": "ssh_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| local_path | Yes | ||
| remote_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |