b2_list_buckets
Retrieves B2 buckets for the authorized account, with optional filtering by ID, name, or type and a configurable limit to manage large result sets.
Instructions
List B2 buckets for the authorized account. Optionally filter by bucket ID, name, or type. When the key is bucket-scoped and no bucketId/bucketName filter is supplied, requests are automatically narrowed to the authorized bucket IDs. Returns bucket ID, name, type, CORS rules, and lifecycle rules for each bucket. Capped to limit buckets (default 100, max 1000) to keep the response small for accounts with many buckets; if more exist the result is truncated with total_bucket_count and a note — raise limit or filter to target specific buckets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of buckets to return (default 100, max 1000). The B2 API returns every bucket in one response; this caps how many are surfaced to keep the payload and token cost bounded. If the account has more buckets than the limit, the result is truncated with total_bucket_count and a note — raise limit (up to 1000) or filter by bucketName / bucketId / bucketTypes. | |
| bucketId | No | Filter to a specific bucket by its ID | |
| bucketName | No | Filter to a specific bucket by its name | |
| bucketTypes | No | Filter by bucket types. Defaults to all types. |