Skip to main content
FuseFuse
IntegrationsAwsActions

List S3 objects

List objects in one general-purpose bucket with optional prefix and delimiter. Requires s3:ListBucket.

Agent markdown

s3.objects.list · AWS · v1

Details

Risk
Read
Idempotency
Safe
Availability
Default
Exposure
REST, SDK, MCP
MCP hints
readOnly=true, destructive=false, idempotent=true, openWorld=true

Scopes

  • s3:ListBucket

Input

Input schema
NameTypeRequiredConstraints
(root)objectYesadditionalProperties false
bucketstringYesminLength 3; maxLength 63; pattern ^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$
regionstringNoenum us-east-1 | us-east-2 | us-west-1 | us-west-2 | af-south-1 | ap-east-1 | ap-east-2 | ap-south-1 | ap-south-2 | ap-southeast-1 | ap-southeast-2 | ap-southeast-3 | ap-southeast-4 | ap-southeast-5 | ap-southeast-6 | ap-southeast-7 | ap-northeast-1 | ap-northeast-2 | ap-northeast-3 | ca-central-1 | ca-west-1 | eu-central-1 | eu-central-2 | eu-west-1 | eu-west-2 | eu-west-3 | eu-north-1 | eu-south-1 | eu-south-2 | il-central-1 | me-central-1 | me-south-1 | mx-central-1 | sa-east-1
prefixstringNominLength 1; maxLength 1024
delimiterstringNominLength 1; maxLength 16
page_sizeintegerNominimum 1; maximum 1000
cursorstringNominLength 1; maxLength 16384; pattern ^(?!.*://)[^\x00-\x1f\x7f]+$

Output

Output schema
NameTypeRequiredConstraints
(root)objectYesadditionalProperties false
objectsarray<object>YesmaxItems 1000
objects[]objectYesadditionalProperties false
objects[].keystringYesminLength 1; maxLength 1024
objects[].size_bytesintegerYesminimum 0
objects[].etagstringNominLength 1; maxLength 256
objects[].last_modified_atstringNominLength 1; maxLength 64
objects[].storage_classstringNominLength 1; maxLength 64
common_prefixesarray<string>YesmaxItems 1000
common_prefixes[]stringYesminLength 1; maxLength 1024
next_cursorstringNominLength 1; maxLength 16384; pattern ^(?!.*://)[^\x00-\x1f\x7f]+$

Raw schema

Input
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "bucket": {
      "type": "string",
      "minLength": 3,
      "maxLength": 63,
      "pattern": "^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$"
    },
    "region": {
      "type": "string",
      "enum": [
        "us-east-1",
        "us-east-2",
        "us-west-1",
        "us-west-2",
        "af-south-1",
        "ap-east-1",
        "ap-east-2",
        "ap-south-1",
        "ap-south-2",
        "ap-southeast-1",
        "ap-southeast-2",
        "ap-southeast-3",
        "ap-southeast-4",
        "ap-southeast-5",
        "ap-southeast-6",
        "ap-southeast-7",
        "ap-northeast-1",
        "ap-northeast-2",
        "ap-northeast-3",
        "ca-central-1",
        "ca-west-1",
        "eu-central-1",
        "eu-central-2",
        "eu-west-1",
        "eu-west-2",
        "eu-west-3",
        "eu-north-1",
        "eu-south-1",
        "eu-south-2",
        "il-central-1",
        "me-central-1",
        "me-south-1",
        "mx-central-1",
        "sa-east-1"
      ]
    },
    "prefix": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024
    },
    "delimiter": {
      "type": "string",
      "minLength": 1,
      "maxLength": 16
    },
    "page_size": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "cursor": {
      "type": "string",
      "minLength": 1,
      "maxLength": 16384,
      "pattern": "^(?!.*://)[^\\x00-\\x1f\\x7f]+$"
    }
  },
  "required": [
    "bucket"
  ]
}
Output
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "objects": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "size_bytes": {
            "type": "integer",
            "minimum": 0
          },
          "etag": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "last_modified_at": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "storage_class": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          }
        },
        "required": [
          "key",
          "size_bytes"
        ]
      },
      "maxItems": 1000
    },
    "common_prefixes": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024
      },
      "maxItems": 1000
    },
    "next_cursor": {
      "type": "string",
      "minLength": 1,
      "maxLength": 16384,
      "pattern": "^(?!.*://)[^\\x00-\\x1f\\x7f]+$"
    }
  },
  "required": [
    "objects",
    "common_prefixes"
  ]
}