get_file
Download a single remote file to the MCP host with temporary-file staging, size and SHA-256 verification, and atomic overwrite of local_path on success.
Instructions
从目标层下载单个文件到 MCP 服务所在机器(支持二进制)。先传输至本地暂存文件并校验大小与 SHA-256 后再落位,校验失败不破坏已有本地文件;成功时会覆盖已存在的 local_path,返回传输通道、字节大小、校验等级 (verification) 与写入形态 (write_mode)。仅读取远端小文本请用 read_file,批量传输多个文件请使用 run_batch。
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": "get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | 目标层名(缺省=默认层) | |
| transport | No | 缺省 exec。SFTP 适用于可直达的 SSH 文件系统 | |
| local_path | Yes | MCP 服务进程所在机器的文件路径 | |
| timeout_ms | No | 每次 SSH 命令或 SFTP 进程的超时毫秒数,缺省 120000 | |
| remote_path | Yes | 目标层内的文件路径 |