sftp_upload
Upload a local file from the host machine to an absolute destination path on a remote SSH host, with an optional connection identifier to pick the target server.
Instructions
将宿主机本地文件快速上传至远程目标主机
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": {
"localPath": "<localPath>",
"remotePath": "<remotePath>"
},
"name": "sftp_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | 宿主机本地文件的绝对路径 | |
| remotePath | Yes | 上传到远程主机的绝对目标路径 | |
| connectionId | No | 目标连接标识符,缺省时使用当前默认连接 |