s3_get_presigned_url
Generate a short-lived presigned URL so clients can download or upload a B2 object directly, with bytes bypassing the MCP server. Specify bucket, key, and GetObject or PutObject; the URL expires automatically.
Instructions
Generate a short-lived presigned URL bearer capability for one B2 object — GetObject (download) or PutObject (upload). The response includes the URL, operation, expiresIn, and expiresAt; treat the URL as sensitive until it expires. This is the preferred path for moving real object data: bytes flow directly between the client/worker and B2 and never pass through the MCP server. Note: presigned POST (browser form uploads) is NOT supported by B2; use a PutObject URL instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The object key. | |
| bucket | Yes | The bucket name. | |
| confirm | No | Confirm minting a PutObject presigned URL bearer capability that can create or overwrite object data. Required when operation is PutObject and the server destructive policy is 'confirm' (the default). | |
| expiresIn | No | URL expiry in seconds (default: 3600 = 1 hour, max: 604800 = 7 days). | |
| operation | Yes | The operation the URL allows: GetObject to download or PutObject to upload. | |
| versionId | No | For GetObject: the specific version ID to target. | |
| contentType | No | For PutObject: restrict the upload to this content type. |