calculate_directory_size
Determine the size of a directory and its contents by specifying the path and output format ('human', 'bytes', or 'json'). Built for MCP Filesystem Server to manage complex directory structures efficiently.
Instructions
Calculate the total size of a directory recursively.
Args:
path: Directory path
format: Output format ('human', 'bytes', or 'json')
ctx: MCP context
Returns:
Directory size information
Input Schema
Name | Required | Description | Default |
---|---|---|---|
format | No | human | |
path | Yes |
Input Schema (JSON Schema)
{
"properties": {
"format": {
"default": "human",
"title": "Format",
"type": "string"
},
"path": {
"title": "Path",
"type": "string"
}
},
"required": [
"path"
],
"title": "calculate_directory_sizeArguments",
"type": "object"
}