get_file
Retrieve any object from Cloudflare R2 storage by its key, obtaining a download URL or saving the file directly to a local path.
Instructions
Get/download an object from R2 by key. Returns downloadUrl (public CDN or presigned). Optionally saves to a local filePath on the MCP host. Global R2_KEY_PREFIX is applied if configured.
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": {
"key": "<key>"
},
"name": "get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Object key in the bucket (e.g. vitalo/2.1.0/app-release.apk) | |
| filePath | No | Absolute local path to save the file. If omitted, only returns URLs and metadata. |