list_directories_by_size
Identify largest directories consuming disk space by analyzing and sorting directories by size, supporting both local and remote Linux systems via SSH.
Instructions
List directories sorted by size (largest first). Uses efficient Linux du command.
Args:
path: Directory path to analyze
top_n: Number of top largest directories to return (1-1000)
host: Remote host to connect to via SSH (optional, executes locally if not provided)
username: SSH username for remote host (required if host is provided)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| top_n | Yes | ||
| host | No | ||
| username | No |