cloud-storage-list-objects

A “cloud-storage-list-objects” tool lists objects in a Cloud Storage bucket, with optional prefix filtering and delimiter-based grouping.

About

A cloud-storage-list-objects tool returns the objects in a Cloud Storage bucket. It supports the usual GCS listing options:

  • prefix — filter results to objects whose names begin with the given string.
  • delimiter — group results by this character (typically /) so subdirectory-like “common prefixes” are returned separately from the leaf objects.
  • max_results / page_token — paginate through large listings.

The response is a JSON object with objects (the full object metadata as returned by the Cloud Storage API — fields such as Name, Size, ContentType, Updated, StorageClass, MD5, etc.), prefixes (the common prefixes when delimiter is set), 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
bucketstringtrueName of the Cloud Storage bucket to list objects from.
prefixstringfalseFilter results to objects whose names begin with this prefix.
delimiterstringfalseDelimiter used to group object names (typically ‘/’). When set, common prefixes are returned as prefixes.
max_resultsintegerfalseMaximum number of objects 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_objects
type: cloud-storage-list-objects
source: my-gcs-source
description: Use this tool to list objects in a Cloud Storage bucket.

Reference

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