list_empty_dirs
Find empty directories beneath a path, including nested directory trees, to identify folders safe for cleanup.
Instructions
Find empty directories beneath a path.
A directory counts as empty when it contains no files and every subdirectory it contains is itself empty. So a tree of nothing but directories is reported from the top down, which is what makes the result usable for cleanup.
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": "list_empty_dirs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |