list_directories_by_size
Identify largest directories to manage disk space by analyzing storage usage with sorted size results for local or remote Linux systems.
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 |