storage_upload
Create or replace a Firebase Storage object from text or base64 with a content type and custom metadata; optionally refuse overwriting existing files.
Instructions
Upload (create or replace) a Storage object from text or base64 bytes with a content type and custom metadata, as the Admin SDK would (rules skipped; finalize triggers run).
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": {
"path": "<path>"
},
"name": "storage_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Object path, e.g. products/shoe.png | |
| text | No | Content as text (sent as UTF-8) | |
| base64 | No | Content as base64 bytes (instead of text) | |
| bucket | No | Storage bucket; default the suite's default bucket | |
| contentType | No | Content type; default text/plain for text, application/octet-stream for base64 | |
| ifNotExists | No | Refuse to replace an existing object | |
| cacheControl | No | Cache-Control | |
| customMetadata | No | String metadata |