ActionCloudflare R2Updated September 2026

How do I list objects in an R2 bucket?

Short answer: You can list r2 objects in Cloudflare R2 by hand from its own interface, but it won’t repeat itself. On TinyCommand, add the Cloudflare R2 List R2 Objects action to a workflow, map its 3 inputs from any upstream app, and it runs automatically every time the trigger fires. No code, and a free tier to start.

List R2 Objects in Cloudflare R2 — start free
Inputs

The fields this action accepts.

Every field can be mapped from an upstream trigger, AI step, table row, or hard-coded literal.

FieldTypeRequiredDescription
Bucket
bucket
stringRequiredmy-bucket
Prefix
prefix
stringOptionalFilter by key prefix, e.g. `uploads/2026/`.
Max Keys
max_keys
numberOptionalMax objects to return (1-1000).
Sample request
{
"bucket": "my-bucket",
"prefix": "{{trigger.prefix}}",
"max_keys": "{{trigger.max_keys}}"
}
Returns
"<ListBucketResult>...</ListBucketResult>"

Use these fields in downstream nodes for routing, logging, or error handling.

Triggered by

Apps that pair well as the trigger for List R2 Objects.

Any of these apps can fire this action as part of a workflow.

FAQ

Questions about List R2 Objects.

What does the List R2 Objects action do in Cloudflare R2?
Paginated objects within a bucket with optional prefix filter. Useful for batch-processing workflows that need to discover all objects matching a pattern (e.g., "all .csv files under exports/" for incremental ingestion).
What inputs does List R2 Objects require?
Required: Bucket. Every input accepts a static value or a variable from any upstream node in your workflow.
Can I use dynamic inputs from earlier workflow nodes?
Yes. Any field on this action can pull values from upstream nodes, whether that's a form response, a trigger payload, an AI output, or a lookup result.
What happens if Cloudflare R2 returns an error?
The run history shows the failed step with its input and the error message Cloudflare R2 returned, so you can fix the input and run the workflow again. Automatic retries are built into HTTP steps only, where you can also set your own retry count and delay.
Does List R2 Objects support batch operations?
Run List R2 Objects inside a loop to process each item in an array. TinyCommand does not throttle calls for you, so for large arrays add a Delay step if you need to stay within Cloudflare R2's rate limits.
More actions

Other Cloudflare R2 actions.

List R2 Objects in Cloudflare R2 — start free