ugreen_create_file
Creates a UTF-8 text file on a NAS with octal permissions and exclusive creation to prevent overwrites. Supports content up to 16 KiB; use upload for larger or binary files.
Instructions
创建一个 NAS 文件,content 为 UTF-8 文本(可为空),最多 16 KiB;更大或二进制内容使用 ugreen_upload_file。默认 exclusive=true,已存在时失败;mode 是八进制权限。仅操作用户指定的对象;写操作失败后先查询当前状态,不自动重试。权限由绿联令牌与 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": {
"path": "<path>"
},
"name": "ugreen_create_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 0644 | |
| path | Yes | ||
| content | No | ||
| dry_run | No | ||
| exclusive | No |