ssh_upload
Uploads a local file to a remote Linux host over SFTP, enabling you to transfer scripts or assets before executing them remotely.
Instructions
把本机文件通过 SFTP 上传到远端(适合把脚本传上去再执行)。
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": {
"local_path": "<local_path>",
"remote_path": "<remote_path>"
},
"name": "ssh_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | ||
| local_path | Yes | 本机文件路径 | |
| remote_path | Yes | 远端目标路径 |