Connect Cloudflare R2 to Your AI Agent

Find the file you need and keep a clear inventory of stored assets.

40 tools Custom credential / OAuth

Try a Cloudflare R2 Task

Copy a prompt into your agent with the oo Skill installed. Add your page links and source notes before running it.

oo Skill Cloudflare R2

Prepare a bucket object inventory

List files under a chosen bucket prefix and organize their metadata.

/oo Cloudflare R2: List all files under [folder prefix] in R2 bucket [bucket]. Group them by folder and keep full file names and available sizes.

Retrieve a Stored File

Get a download link for a file in the selected bucket.

/oo Cloudflare R2: Download [file name] from R2 bucket [bucket] and give me a download link.

Start Working with Cloudflare R2

  1. Install OOMOL

    Set up oo CLI and the oo Skill in your agent.

    Install OOMOL →
  2. Connect Cloudflare R2

    Connect through Cloudflare authorization or supply an API token and account ID.

    Connect Cloudflare R2 →
  3. Give Your Agent a Task

    Use /oo with the pages to read, the changes to make, and where to save the result.

    Connection Guide →

Choose Your Agent

  • Grant access to the intended account, buckets and object operations.
  • Use the correct bucket jurisdiction when applicable. Download links are temporary.

Cloudflare R2 Tools

List bucket contents, download objects, upload supplied files, and inspect retention or access settings. File inventories can be limited to a chosen prefix.

Buckets and files

Read bucket inventories, list objects and transfer specified files.

Bucket policy review

Inspect cross-origin, lifecycle, lock and domain settings.

40 tools

List Accounts

List Cloudflare accounts visible to the current credential.

cloudflare_r2.list_accounts

List Buckets

List the R2 buckets in a Cloudflare account.

cloudflare_r2.list_buckets

Get Bucket

Get one R2 bucket by name.

cloudflare_r2.get_bucket

Download Object

Download one R2 object and upload it to connector transit storage.

cloudflare_r2.download_object

Create Bucket

Create an R2 bucket in a Cloudflare account.

cloudflare_r2.create_bucket

Update Bucket

Update mutable R2 bucket properties such as default storage class or jurisdiction.

cloudflare_r2.update_bucket

Delete Bucket

Delete an R2 bucket by name.

cloudflare_r2.delete_bucket

Get Bucket Cors Policy

Fetch the bucket-level CORS policy for an R2 bucket.

cloudflare_r2.get_bucket_cors_policy

Update Bucket Cors Policy

Replace the bucket-level CORS policy for an R2 bucket.

cloudflare_r2.update_bucket_cors_policy

Delete Bucket Cors Policy

Delete the bucket-level CORS policy for an R2 bucket.

cloudflare_r2.delete_bucket_cors_policy

Put Object

Upload one R2 object from a public URL, plain text, or base64-encoded content.

cloudflare_r2.put_object

Generate Presigned Url

Generate a pre-signed R2 URL for one GET, PUT, or HEAD request using a custom API token credential.

cloudflare_r2.generate_presigned_url

List Objects

List objects in an R2 bucket with optional prefix, delimiter grouping, and cursor pagination.

cloudflare_r2.list_objects

Delete Object

Delete one R2 object by key.

cloudflare_r2.delete_object

Delete Objects

Delete a list of R2 objects by key in one request.

cloudflare_r2.delete_objects

Delete Objects By Prefix

Start a background job that deletes every object under a key prefix, or empties the whole bucket.

cloudflare_r2.delete_objects_by_prefix

List Bucket Jobs

List background jobs for an R2 bucket, such as prefix delete jobs.

cloudflare_r2.list_bucket_jobs

Get Bucket Job

Get the current status of one R2 bucket background job.

cloudflare_r2.get_bucket_job

List Custom Domains

List the custom domains attached to an R2 bucket.

cloudflare_r2.list_custom_domains

Get Custom Domain

Get the settings of one custom domain attached to an R2 bucket.

cloudflare_r2.get_custom_domain

Add Custom Domain

Attach a custom domain from a Cloudflare zone to an R2 bucket.

cloudflare_r2.add_custom_domain

Update Custom Domain

Update the public access, TLS version, or cipher settings of a custom domain.

cloudflare_r2.update_custom_domain

Delete Custom Domain

Detach a custom domain from an R2 bucket.

cloudflare_r2.delete_custom_domain

Get Managed Domain

Get the r2.dev managed domain and its public access state for an R2 bucket.

cloudflare_r2.get_managed_domain

Update Managed Domain

Enable or disable public access to an R2 bucket through its r2.dev domain.

cloudflare_r2.update_managed_domain

Get Bucket Lifecycle

Get the object lifecycle rules of an R2 bucket.

cloudflare_r2.get_bucket_lifecycle

Update Bucket Lifecycle

Replace the object lifecycle rules of an R2 bucket with the given rule set.

cloudflare_r2.update_bucket_lifecycle

Get Bucket Lock

Get the object lock rules of an R2 bucket.

cloudflare_r2.get_bucket_lock

Update Bucket Lock

Replace the object lock rules of an R2 bucket with the given rule set.

cloudflare_r2.update_bucket_lock

Get Bucket Local Uploads

Get whether local uploads are enabled, which writes objects to the nearest region before replicating to the primary region.

cloudflare_r2.get_bucket_local_uploads

Update Bucket Local Uploads

Enable or disable local uploads for an R2 bucket.

cloudflare_r2.update_bucket_local_uploads

Get Sippy Config

Get the Sippy incremental migration configuration of an R2 bucket.

cloudflare_r2.get_sippy_config

Enable Sippy

Enable Sippy so that objects missing from the R2 bucket are copied on demand from a source bucket on AWS S3, Google Cloud Storage, an S3-compatible service, or Azure Blob Storage.

cloudflare_r2.enable_sippy

Disable Sippy

Disable Sippy on an R2 bucket.

cloudflare_r2.disable_sippy

List Event Notification Rules

List every event notification rule of an R2 bucket grouped by target queue.

cloudflare_r2.list_event_notification_rules

Get Event Notification Rules

Get the event notification rules that send R2 bucket events to one queue.

cloudflare_r2.get_event_notification_rules

Create Event Notification Rules

Add event notification rules that send R2 bucket events to a Cloudflare Queue.

cloudflare_r2.create_event_notification_rules

Delete Event Notification Rules

Delete event notification rules bound to one queue. Deletes every rule for the queue when ruleIds is omitted.

cloudflare_r2.delete_event_notification_rules

Get Account Metrics

Get object count and storage usage metrics across all R2 buckets in the account. Metrics may lag behind the latest data.

cloudflare_r2.get_account_metrics

Create Temporary Access Credentials

Create short-lived S3-compatible credentials scoped to one R2 bucket and optionally to prefixes or objects.

cloudflare_r2.create_temporary_access_credentials

Frequently Asked Questions

Can I limit an inventory to one folder?

Yes. Provide the bucket name and the beginning of the file names you want to include.

Are download links permanent?

No. Downloads use temporary links; save the file while the link is available.

Can I inspect retention settings?

Yes. Ask to review bucket lifecycle and lock rules before deciding whether to change them.

Connect Cloudflare R2

About Cloudflare R2 ↗