File Compress
file_compressCompress files or directories on an fnOS NAS into a single archive at a specified path, with optional password and compression level.
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": {
"output_path": "<output_path>",
"source_paths": "<source_paths>"
},
"name": "file_compress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | NAS 主机地址(IP 或域名) | |
| port | No | NAS 端口,如 5667(HTTPS)/5666(HTTP)/443 | |
| level | No | 压缩级别 0-9 | |
| scheme | No | 传输协议 | |
| profile | No | 独立 session profile 名称,默认使用 default | |
| password | No | 压缩包密码 | |
| output_path | Yes | 输出压缩包路径(NAS 上),如 /vol1/1000/backup.zip | |
| source_paths | Yes | 源文件/目录路径列表(NAS 上) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |