runtime_sandboxes_mounts
S3, Cloudflare R2 and Google Cloud Storage buckets mounted in a running sandbox. mount(id, provider, bucket, path, prefix?, region?, endpoint?, accountId?, secret?, readOnly?): Mount a bucket at path; secret keeps the key out of the sandbox. list(id): Each mount and whether it is mounted now. unmount(id, path): What was written stays in the bucket.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| path | No | Where it appears in the sandbox, such as /data. | |
| action | Yes | ||
| bucket | No | The bucket's name. | |
| prefix | No | Mount only the keys under this prefix. | |
| region | No | The bucket's region; us-east-1 for S3 when omitted. | |
| secret | No | The name of the secret holding ACCESS_KEY_ID:SECRET_KEY, stored with header Authorization and format "AWS4-HMAC-SHA256 {value}" for the endpoint's host. The sandbox never sees the key: the egress proxy signs each request. Omit for a public bucket. | |
| endpoint | No | An https:// URL for any other S3-compatible store (MinIO, Backblaze B2...). | |
| provider | No | s3 for Amazon S3 (or any S3-compatible store with endpoint), r2 for Cloudflare R2, gcs for Google Cloud Storage through its S3-compatible XML API with HMAC keys. | |
| readOnly | No | Mount it read-only. | |
| accountId | No | For r2: your Cloudflare account id. |