{"command":{"effect":"read","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Lists objects in an R2 bucket. Returns object metadata including key, size, etag, last modified date, HTTP metadata, and custom metadata.\n\nFor most workloads, we recommend using R2's [S3-compatible API](https://developers.cloudflare.com/r2/api/s3/api/) or a [Worker with an R2 binding](https://developers.cloudflare.com/r2/api/workers/workers-api-reference/) instead.\n","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/r2_account_identifier"},"bucket_name":{"$ref":"#/definitions/r2_bucket_name"}},"required":["account_id","bucket_name"],"additionalProperties":false},"headers":{"type":"object","properties":{"cf-r2-jurisdiction":{"type":"string","default":"default","enum":["default","eu","us","fedramp","fedramp-high"],"description":"Jurisdiction where objects in this bucket are guaranteed to be stored."}},"required":[],"additionalProperties":false},"query":{"type":"object","properties":{"per_page":{"description":"Maximum number of objects to return per page.","type":"integer","default":20,"maximum":1000,"minimum":1},"prefix":{"description":"Restricts results to only those objects whose keys begin with the specified prefix.","type":"string"},"delimiter":{"description":"A single character used to group keys. All keys that contain the delimiter between the prefix and the first occurrence of the delimiter after the prefix are grouped under a single result element.","type":"string"},"cursor":{"description":"Pagination cursor received from a previous List Objects call. Used to retrieve the next page of results.","type":"string"},"start_after":{"description":"Returns objects with keys that come after the specified key in lexicographic order.","type":"string"}},"required":[],"additionalProperties":false}},"required":["path"],"additionalProperties":false,"definitions":{"r2_account_identifier":{"description":"Cloudflare account ID that owns the R2 resource.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"r2_bucket_name":{"description":"Name of the bucket.","type":"string","maxLength":64,"minLength":3,"pattern":"^[a-z0-9][a-z0-9-]*[a-z0-9]","examples":["example-bucket"]}}},"name":"List Objects","id":"cloudflare.r2-list-objects","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353","bucket_name":"example-bucket"}},"maxRequests":1,"summary":false}}