list_objects_v2
Retrieve a JSON-formatted list of objects from an S3 bucket, with options to filter by prefix, set maximum keys, paginate using a token, and group keys with a delimiter.
Instructions
Lists objects in an S3 bucket.
Args: bucket (str): The name of the bucket. prefix (Optional[str]): Filter for keys starting with this prefix. max_keys (Optional[int]): Maximum number of keys to return. continuation_token (Optional[str]): Token for paginating results. delimiter (Optional[str]): Delimiter for grouping keys.
Returns: str: JSON formatted S3 response.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
bucket | Yes | ||
continuation_token | No | ||
delimiter | No | ||
max_keys | No | ||
prefix | No |
Input Schema (JSON Schema)
{
"properties": {
"bucket": {
"title": "Bucket",
"type": "string"
},
"continuation_token": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Continuation Token"
},
"delimiter": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Delimiter"
},
"max_keys": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Max Keys"
},
"prefix": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Prefix"
}
},
"required": [
"bucket"
],
"type": "object"
}