s3_get_object
Retrieve a small S3 object's full body inline as UTF-8 text or base64, with strict size limits and no truncation. Use it to inspect complete small files or binary payloads up to 256 KiB.
Instructions
Return a small object's whole body inline as UTF-8 text or base64; read-only. Use it for objects up to 262144 bytes (256 KiB); to look at the start of a larger file use s3_preview_object, to save it to disk use s3_download_file, and to hand it over use s3_presign_get. Returns key, bytes, data, encoding and content_type. Fails instead of truncating when the object exceeds max_bytes, and fails on non-UTF-8 content unless encoding is base64.
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_get_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. | |
| encoding | No | "text" (default; fails on content that is not UTF-8) or "base64" for binary data. | |
| max_bytes | No | Largest body to accept, 1-262144 bytes; default 262144. A larger object fails instead of being truncated. | |
| version_id | No | Object version ID from s3_list_object_versions; omit for the current version. |