get_directory_size
Recursively calculate a directory's total size and file count to monitor disk usage. Returns bytes, megabytes, and number of files for a workspace-relative path.
Instructions
Recursively calculate the total size of a directory's contents.
Args: path: Directory to measure, relative to the workspace root.
Returns: Total size in bytes and megabytes, plus the number of files counted.
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 |
|---|---|---|---|
| path | No | . |