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.
Inputs
The fields this action accepts.
Every field can be mapped from an upstream trigger, AI step, table row, or hard-coded literal.
| Field | Type | Required | Description |
|---|---|---|---|
Bucket bucket | string | Required | my-bucket |
Prefix prefix | string | Optional | Filter by key prefix, e.g. `uploads/2026/`. |
Max Keys max_keys | number | Optional | Max 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.
Action
Get R2 Object
Downloads object content from an R2 bucket. For workflows that need to fetch and process R2-stored content (CDN-origin files, archived backups, user-uploaded assets) downstream.
ActionList R2 Buckets
Returns every R2 bucket in the account with name and creation date. Useful for bucket-inventory workflows and for resolving bucket names at workflow-build time.