get_directory_size
Calculates the total size of a directory and returns the number of files and folders it contains, helping you assess folder storage use before reading or analyzing its contents.
Instructions
Calculate total folder size and return file and folder counts.
Args:
directory: Directory path to measure.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_directory_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |