Get Disk & Directory Usage
fs_disk_usageCheck disk capacity and directory usage statistics for a given path, including file count, folder count, and total bytes, to assess storage consumption.
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": "fs_disk_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 目标文件或目录路径 | |
| maxFiles | No | 统计目录时的最大扫描文件数 |