Set storage visibility
set_storage_visibilityMake a spawnpoint project's bucket (add_storage) public or private. Public: anyone can read any file at S3_PUBLIC_URL/, with no request to the app and no gate; right for a public gallery, wrong for user documents. Private: only the app's own key reads the bucket, and browsers get presigned URLs the app signs. Either way the bucket's file list stays private: a public bucket serves files by exact key only. Sets or unsets S3_PUBLIC_URL and restarts the app. A restricted project with a public bucket gets a warning to relay, since its files bypass the gate.
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": {
"project_id": "<project_id>",
"public": "<public>"
},
"name": "set_storage_visibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| public | Yes | true: anyone can read any object at S3_PUBLIC_URL/<key>, with no request to the app and no gate. false: only the app's own key reads the bucket | |
| project_id | Yes | the id of the project |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| note | Yes | ||
| bucket | No | ||
| public | No | ||
| status | Yes | ||
| warning | No | ||
| read_only | No | ||
| project_id | Yes | ||
| public_url | No |