← Tools Reference

Cloudflare R2

Cloudflare R2 integration (Storage, Developer Tools). Imported from open-connector.

OAuth9 toolshttps://api.cloudflare.com/client/v4
GET
cloudflare_r2_list_accounts
List Cloudflare accounts visible to the current credential.

/accounts

2 parameters
ParamTypeRequiredDescription
pageintegeroptionalThe result page number.
perPageintegeroptionalThe page size.
GET
cloudflare_r2_list_buckets
List the R2 buckets in a Cloudflare account.

/accounts/{accountId}/r2/buckets

6 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
cursorstringoptionalPagination cursor returned by a previous list_buckets call.
directionstringoptionalThe sort direction.
nameContainsstringoptionalFilters buckets whose names contain this phrase.
orderstringoptionalThe field used to order results.
perPageintegeroptionalThe maximum number of buckets to return.
GET
cloudflare_r2_get_bucket
Get one R2 bucket by name.

/accounts/{accountId}/r2/buckets/{bucketName}

3 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
bucketNamestringrequiredThe R2 bucket name.
jurisdictionstringoptionalThe jurisdiction where objects in the bucket are guaranteed to be stored.
POST
cloudflare_r2_create_bucket
Create an R2 bucket in a Cloudflare account.

/accounts/{accountId}/r2/buckets

5 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
namestringrequiredThe R2 bucket name.
locationHintstringoptionalThe R2 bucket region hint.
storageClassstringoptionalThe default storage class for newly uploaded objects.
jurisdictionstringoptionalThe jurisdiction where objects in the bucket are guaranteed to be stored.
PATCH
cloudflare_r2_update_bucket
Update mutable R2 bucket properties such as default storage class or jurisdiction.

/accounts/{accountId}/r2/buckets/{bucketName}

4 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
bucketNamestringrequiredThe R2 bucket name.
storageClassstringoptionalThe default storage class for newly uploaded objects.
jurisdictionstringoptionalThe jurisdiction where objects in the bucket are guaranteed to be stored.
DELETE
cloudflare_r2_delete_bucket
Delete an R2 bucket by name.

/accounts/{accountId}/r2/buckets/{bucketName}

3 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
bucketNamestringrequiredThe R2 bucket name.
jurisdictionstringoptionalThe jurisdiction where objects in the bucket are guaranteed to be stored.
GET
cloudflare_r2_get_bucket_cors_policy
Fetch the bucket-level CORS policy for an R2 bucket.

/accounts/{accountId}/r2/buckets/{bucketName}/cors

3 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
bucketNamestringrequiredThe R2 bucket name.
jurisdictionstringoptionalThe jurisdiction where objects in the bucket are guaranteed to be stored.
PUT
cloudflare_r2_update_bucket_cors_policy
Replace the bucket-level CORS policy for an R2 bucket.

/accounts/{accountId}/r2/buckets/{bucketName}/cors

4 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
bucketNamestringrequiredThe R2 bucket name.
rulesarrayrequiredThe full CORS rule set to store.
jurisdictionstringoptionalThe jurisdiction where objects in the bucket are guaranteed to be stored.
DELETE
cloudflare_r2_delete_bucket_cors_policy
Delete the bucket-level CORS policy for an R2 bucket.

/accounts/{accountId}/r2/buckets/{bucketName}/cors

3 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
bucketNamestringrequiredThe R2 bucket name.
jurisdictionstringoptionalThe jurisdiction where objects in the bucket are guaranteed to be stored.