get_largest_files
Identify which entries consume the most disk space in a given directory. Specify an optional path and result limit to list the top largest files and directories by size for quick storage triage.
Instructions
Lists the top N largest entries in a directory by size (default path '.', limit 10-100). Read-only and non-recursive - only one directory level, and directory sizes show their own stat size, not contents. Failures silently return empty results. Use for quick space triage; get_disk_info for partition-level capacity.
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_largest_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | directory to scan (default: current dir) | |
| limit | No | max results (default: 10, max: 100) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| errors | No | ||
| entries | Yes |