s3_get_object
Fetch an object from a B2 bucket: read small files inline as base64 for inspection, or stream larger files to a local path using saveToPath.
Instructions
Read a SMALL object inline (≤1 MiB, returned base64) — for manifests, sidecars, and configs the agent must inspect — or stream any size to a local path with saveToPath. For real object data, generate a GetObject URL with s3_get_presigned_url and download directly from B2 (bytes never pass through the server or the model context).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The object key. | |
| range | No | Byte range, e.g. 'bytes=0-1048575'. | |
| bucket | Yes | The bucket name. | |
| versionId | No | Specific version of the object to retrieve. | |
| saveToPath | No | If provided, save the file to this local path. |