put_file
Uploads a file from the MCP server host to a target layer, checks integrity before placement, and returns verification and write-mode details.
Instructions
从 MCP 服务所在机器上传一个文件到目标层。支持二进制,校验后落位,可能覆盖目标文件。返回校验等级和写入形态。
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": "put_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | 目标层名(缺省=默认层) | |
| transport | No | 缺省 exec。SFTP 适用于可直达的 SSH 文件系统 | |
| local_path | Yes | MCP 服务进程所在机器的文件路径 | |
| timeout_ms | No | 每次 SSH 命令或 SFTP 进程的超时毫秒数,缺省 120000 | |
| write_mode | No | 缺省 auto。inplace 保留目标 inode | |
| remote_path | Yes | 目标层内的文件路径 |