Cloudflare R2 Storage icon

Cloudflare R2 Storage

Interact with Cloudflare R2 object storage. Upload, download, manage files and buckets. Supports batch operations, multipart uploads, and can be used as a tool by AI Agents.

Object → Download

AI-generated

Summary

Downloads a file from an R2 bucket.

Inputs

  • bucketName (required) — The name of the R2 bucket to operate on.
  • objectKey (required) — The key (path/filename) of the object in the bucket.

Output shape

A JSON object containing a success flag, object metadata, and binary download details.

The response includes success status, metadata, and a binary payload with data, MIME type, filename, and size; may include additional fields depending on the operation.

Examples

Example 1: Download a CSV report

Bucket Name: my-bucket; Object Key: reports/report-2024.csv

Discussion