Upload local file or external URL to R2 storage
Upload local file or external URL to R2 storage › Request Body
sourceLocal file path (e.g. "/Users/me/image.png") or public URL (e.g. "https://example.com/photo.jpg"). Leave empty when passing file_data instead.
file_dataBase64-encoded file bytes, with or without a "data:
file_nameOptional filename for the upload (e.g. "hero.png"). Path components are stripped — only the basename is used.
content_typeMIME type (e.g. "image/png", "video/mp4"). Auto-detected from file extension for paths/URLs, or from the data: prefix on file_data. Required when passing raw base64 with no prefix.
project_idProject ID for R2 path organization.
response_formatResponse format. Default: text.
Upload local file or external URL to R2 storage › Responses
Tool executed. isError:true in the body indicates a tool-level error.
isErrorSign an R2 key to get a fresh download URL
Sign an R2 key to get a fresh download URL › Request Body
r2_keyThe R2 object key (e.g. "org_x/user_y/images/2026-04-03/abc.png").
response_formatResponse format. Default: text.
Sign an R2 key to get a fresh download URL › Responses
Tool executed. isError:true in the body indicates a tool-level error.
isError