list_buckets
List the Qencode Media Storage buckets available to the account.
Returns a `buckets` array; each entry has `name`, `region`
(us-west / eu-central), `created_at`, and `public`: true when the bucket is
served over an unauthenticated CDN endpoint (readable without a signed URL).
`public` is read-only here — bucket visibility is managed in the Qencode
portal, not via these tools.
Each bucket also carries `destination_prefix` (job `destination.url` =
`{destination_prefix}/{new filename or folder}`) and, when `public` is
true, `cdn_origin`. Copy these strings; do not assemble the host.
Do not copy a listed file's `destination_url` as dest — that is the
existing object (use it as `source`). `s3://<name>/…` is rejected (the
API demands `key`/`secret`).
Caveat: for a *just-created* bucket the `public` flag is not yet stable — it
starts `false` and flips to `true` within a few seconds up to ~a minute as
the CDN endpoint provisions. Don't cache a `public` value read right after
`create_bucket`; poll until it settles (see qencode://docs/storage).
SCOPE — every storage tool here reuses the caller's existing Qencode
sign-in. There is no separate storage permission and no second approval
prompt, including for the tools that write. They also operate on the WHOLE
ACCOUNT rather than the current project: this call lists every bucket the
account owns, and anything created or written is visible to all of that
account's projects. Surface that to the user before acting on storage on
their behalf.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| buckets | Yes |