get_upload_url
Generate a presigned URL for uploading a photo directly to R2. Provide file name and MIME type (JPEG, PNG, WebP, GIF) to receive a secure upload link.
Instructions
Get a presigned URL to upload a photo directly to R2. API token required.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"content_type": "<content_type>",
"file_name": "<file_name>"
},
"name": "get_upload_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | Yes | The name of the file to upload | |
| content_type | Yes | The MIME type of the file (image/jpeg, image/png, image/webp, image/gif) |