Disk usage and folder quota
nas_file_usageMeasure folder space usage with optional depth breakdown, or check quota limits for personal and shared NAS folders.
Instructions
kind "du" reports how much space folders occupy (items[].entries[] with size, dir_count and file_count), optionally broken down to a given depth; it walks the tree and can be slow. kind "quota" reports the size limit set on a personal or shared folder: the value is in MB as a string, and "0" means no quota is set, not a quota of zero. Quotas exist only at the level of a personal or shared folder, not on subfolders or volume roots. For free space on a whole volume use nas_storage_info with kind "volumes".
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": {
"kind": "<kind>",
"paths": "<paths>"
},
"name": "nas_file_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | "du" for space used, "quota" for the configured limit. | |
| depth | No | For "du" only: break usage down this many levels deep. | |
| paths | Yes | Folders to measure. Absolute NAS paths (1 to 20). | |
| timeout_seconds | No | Time limit in seconds (default 120, max 1800). Raise it for large folders or files; a result cut off by the limit is incomplete. |