ugreen_restore_file
Restores a file or directory from the NAS recycle bin using a valid recycle_path from a deletion receipt or recycle listing; use dry_run only to preview, not confirm recovery.
Instructions
从回收站恢复一个 NAS 文件或目录,recycle_path 必须使用删除结果 data.receipt.final_path 或回收站列表返回的路径。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": {
"recycle_path": "<recycle_path>"
},
"name": "ugreen_restore_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| recycle_path | Yes |