File Usage
file_usageRetrieve a categorized summary of storage space usage for a specified volume on an fnOS NAS, converting IDs like vol1 or /vol1 to the numeric format required by trim-cli.
Instructions
查看卷空间使用分类汇总。
trim-cli 的 位置参数只接受整数(1 表示 /vol1),传 vol1 会报 "invalid digit found in string",所以这里先把数字部分抽出来再传。
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": {
"vol": "<vol>"
},
"name": "file_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vol | Yes | 卷 ID:1 / "1" / vol1 / /vol1 均可,统一取数字部分 | |
| host | No | NAS 主机地址(IP 或域名) | |
| port | No | NAS 端口,如 5667(HTTPS)/5666(HTTP)/443 | |
| scheme | No | 传输协议 | |
| profile | No | 独立 session profile 名称,默认使用 default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |