s3_head_object
Read an object's metadata without downloading its body to verify existence, size, or content type before retrieval; returns key, size, ETag, last modified, version, and user metadata.
Instructions
Read one object's metadata without downloading its body; read-only. Use it to check existence, size or content type before s3_get_object, s3_download_file or s3_presign_get. Returns key, size (bytes), etag, content_type, last_modified, version_id and user metadata. A missing key fails with a not-found error (NotFound or http_404).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bucket": "<bucket>",
"key": "<key>"
},
"name": "s3_head_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Full object key inside the bucket, without the bucket name, e.g. "daily/archive.tar". | |
| bucket | Yes | Bucket name, e.g. "backups". Must be inside the configured bucket scope. | |
| version_id | No | Object version ID from s3_list_object_versions; omit for the current version. |