cloud-storage-list-buckets

A “cloud-storage-list-buckets” tool lists Cloud Storage buckets in a project, with optional prefix filtering and pagination.

About

A cloud-storage-list-buckets tool returns the Cloud Storage buckets in a project. By default, it uses the project configured on the source. You can pass the optional project parameter to list buckets in a different project that the same credentials can access.

The response is a JSON object with buckets (bucket metadata returned by the Cloud Storage API) and nextPageToken (empty when there are no more pages).

Compatible Sources

This tool can be used with the following database sources:

Source Name
Cloud Storage Source

Parameters

parametertyperequireddescription
projectstringfalseProject ID to list buckets in. When empty, the source’s configured project is used.
prefixstringfalseFilter results to buckets whose names begin with this prefix.
max_resultsintegerfalseMaximum number of buckets to return per page. A value of 0 uses the API default (1000); negative values and values above 1000 are rejected.
page_tokenstringfalseA previously-returned page token for retrieving the next page of results.

Example

kind: tool
name: list_buckets
type: cloud-storage-list-buckets
source: my-gcs-source
description: Use this tool to list Cloud Storage buckets in the project.

Output Format

The tool returns a JSON object with:

fieldtypedescription
bucketsarrayBucket metadata returned by the Cloud Storage API.
nextPageTokenstringToken to pass as page_token for the next page.

Reference

fieldtyperequireddescription
typestringtrueMust be “cloud-storage-list-buckets”.
sourcestringtrueName of the Cloud Storage source to list buckets from.
descriptionstringtrueDescription of the tool that is passed to the LLM.