File Rename
file_renameRename a file or directory on an fnOS NAS by specifying its path and new name. This write operation updates names without moving or copying data.
Instructions
重命名文件/目录(写操作)。
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": "<name>"
},
"name": "file_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | NAS 主机地址(IP 或域名) | |
| name | Yes | 新名称(不含路径) | |
| path | Yes | NAS 上的路径,如 /vol1/1000/文档 | |
| port | No | NAS 端口,如 5667(HTTPS)/5666(HTTP)/443 | |
| scheme | No | 传输协议 | |
| profile | No | 独立 session profile 名称,默认使用 default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |