Amazon S3
Amazon S3 and S3-compatible storage (R2, MinIO) with built-in SigV4, list buckets and objects, metadata, downloads into an allowed directory, uploads, copies, agent tools read-only unless opted in, delete and presigned URLs node only
About
A Graphrt plugin for Amazon S3 and S3-compatible object storage (Cloudflare R2, MinIO, Backblaze B2, Wasabi, ...). It talks to the S3 REST API directly. Requests are signed with AWS Signature Version 4, implemented in lib/aws-sigv4.mjs and checked against the official AWS SigV4 test suite and the S3 documentation examples. No AWS SDK, no npm dependencies.
What it can do
- list_buckets, list_objects (ListObjectsV2: prefix, delimiter "folders", start_after, pages of up to 1000 keys with next_cursor). Keys are listed with encoding-type=url and decoded, so any key survives.
- head_object: size, content type, ETag, dates, storage class and x-amz-meta-* user metadata.
- get_object: output: "file" streams the object into S3_DOWNLOAD_DIR (size-capped, never overwrites a file), output: "text" returns at most S3_MAX_TEXT_BYTES as UTF-8 text with truncated and total_bytes (only that many bytes are requested, with a Range header). Optional range and version_id.
- put_object: from a file inside S3_UPLOAD_DIR or from text, with content type, cache control, content disposition, storage class, metadata and only_if_absent (If-None-Match: *).
- copy_object: server-side copy (up to 5 GB), keeping (COPY) or replacing (REPLACE) the metadata.
- delete_object and presign_get_url (node only, see Safety).
- Every operation is a node s3.<operation>, the agent tools are listed under Safety. Full reference: OPERATIONS.md.
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- List buckets
s3.list_buckets - List objects
s3.list_objects - Get object metadata
s3.head_object - Download object
s3.get_object - Upload object
s3.put_object - Copy object
s3.copy_object - Delete object
s3.delete_object - Presigned download URL
s3.presign_get_url
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
AWS_ACCESS_KEY_ID(none)Standard AWS credentials (session token for temporary credentials) -
S3_ACCESS_KEY_ID(none)Used instead of the AWS_* ones when set, so R2/MinIO keys can live next to AWS keys -
S3_REGIONUs-east-1Signing region. auto for Cloudflare R2. -
S3_ENDPOINTHttps://s3.<region>.amazonaws.comOrigin of an S3-compatible service, e.g. https://<account-id>.r2.cloudflarestorage.com or http://localhost:9000. https only, except http for localhost. -
S3_FORCE_PATH_STYLE1 with S3_ENDPOINT, else 01: https://endpoint/bucket/key, 0: https://bucket.endpoint/key. On AWS, buckets with dots always use path style (TLS). -
S3_DOWNLOAD_DIR(off)Absolute directory get_object may write into. Without it, only output: "text" works. -
S3_UPLOAD_DIR(off)Absolute directory put_object may read files from. Without it, only text uploads work. -
S3_MAX_DOWNLOAD_BYTES104857600 (100 MiB)Largest object get_object saves -
S3_MAX_UPLOAD_BYTES104857600 (100 MiB, at most 1 GiB)Largest upload (the body is hashed in memory for the signature) -
S3_MAX_TEXT_BYTES1048576 (1 MiB)Most bytes output: "text" returns -
S3_TIMEOUT_MS30000Per-request timeout for listings, HEAD and DELETE -
S3_TRANSFER_TIMEOUT_MS300000Timeout for downloads, uploads and copies (the plugin's host timeout is 360 s) -
S3_TOOL_ALLOW_WRITES(off)1 lets agent tools call put_object and copy_object -
S3_ALLOWED_BUCKETS(any)Comma-separated buckets agent tools may touch (list, head, get, put, and both sides of a copy), list_buckets shows tools only these. Nodes are not limited. -
S3_EXPECTED_BUCKET_OWNER(off)12-digit AWS account id sent as x-amz-expected-bucket-owner (and x-amz-source-expected-bucket-owner for copies) on every bucket request, so a request to a bucket owned by another account fails with 403 -
AWS_SECRET_ACCESS_KEY -
S3_SECRET_ACCESS_KEY -
S3_SESSION_TOKEN -
AWS_SESSION_TOKEN -
AWS_REGION -
AWS_DEFAULT_REGION
How to use it
In Graphrt Desktop
- Open Plugins and search for Amazon S3.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
$ graphrt plugin install s3 - { id: list, type: s3.list_objects, bucket: invoices, prefix: "2026/11/", limit: 100 }
- { id: fetch, type: s3.get_object, bucket: invoices, key: "{{#list.data.objects.0.key#}}" } # -> data.path in S3_DOWNLOAD_DIR
- { id: upload, type: s3.put_object, bucket: reports, key: "daily/summary.txt", text: "{{#llm.text#}}" }
- { id: share, type: s3.presign_get_url, bucket: reports, key: "daily/summary.txt", expires_in_seconds: 86400 }