s3_largest_objects
Rank objects by size under a bucket prefix to find what consumes storage; scan a limited number of keys, return sorted results, and resume partial scans with a continuation token.
Instructions
Find the largest objects under a prefix by scanning up to max_scan keys (default 10000); read-only. Use it to locate what consumes space; use s3_prefix_usage for totals per sub-prefix and s3_list_objects for plain browsing. Returns objects[] sorted by size descending (at most limit, default 10), scanned, partial and continuation_token. partial:true means the scan stopped early and the ranking covers only scanned keys; pass continuation_token to rank the next batch.
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": {
"bucket": "<bucket>"
},
"name": "s3_largest_objects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of largest objects to return, 1-1000; default 10. | |
| bucket | Yes | Bucket name, e.g. "backups". Must be inside the configured bucket scope. | |
| prefix | No | Key prefix that limits the results, e.g. "daily/"; omit for the whole bucket. End it with "/" to match one folder only. In a prefix-restricted scope it must start with an allowed prefix followed by "/". | |
| max_scan | No | Maximum number of object keys to scan in this call; default 10000. Higher values give more complete results but take longer. | |
| continuation_token | No | continuation_token from a previous partial result to scan the next batch of keys; omit to start at the beginning of prefix. |