transfer_file
Transfer files between local and remote servers using SFTP. Specify server, direction, and paths to upload or download files.
Instructions
在本地和服务器之间传输文件(SFTP)。
参数:
- server: 服务器中文名
- direction: "upload"(上传)或 "download"(下载)
- local_path: 本地文件路径
- remote_path: 服务器上的文件路径
- confirmed: 上传属于写操作,需确认后传 True
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": {
"server": "<server>",
"direction": "<direction>",
"local_path": "<local_path>",
"remote_path": "<remote_path>"
},
"name": "transfer_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | Yes | ||
| confirmed | No | ||
| direction | Yes | ||
| local_path | Yes | ||
| remote_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |