ugreen_upload_file
Upload a local file to a specified absolute path on a UGREEN NAS, with conflict handling, optional SHA-256 verification, and dry-run preview.
Instructions
把一个本地普通文件上传到指定 NAS 绝对路径。remote_path 以 / 结尾时沿用本地文件名;默认同名自动改名,replace 会覆盖。verify 核对 SHA-256;dry_run 仅预演,不上传内容。仅操作用户指定的对象;写操作失败后先查询当前状态,不自动重试。权限由绿联令牌与 NAS 账户决定。
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": "ugreen_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verify | No | ||
| dry_run | No | ||
| local_path | Yes | ||
| on_conflict | No | rename | |
| remote_path | Yes |