Graphrt

Amazon S3

Amazon S3 dan storage yang kompatibel dengan S3 (R2, MinIO) dengan SigV4 bawaan, daftar bucket dan object, metadata, unduh ke folder yang diizinkan, unggah, salin. Tool agent hanya membaca kecuali diizinkan, hapus dan presigned URL hanya lewat node

Beta v0.1.0 Node.js 8 aksi
Pakai di Graphrt Desktop

Tentang

Plugin Graphrt untuk Amazon S3 dan object storage yang kompatibel dengan S3 (Cloudflare R2, MinIO, Backblaze B2, Wasabi dan lainnya). Plugin ini berbicara langsung ke S3 REST API. Request ditandatangani dengan AWS Signature Version 4 yang ditulis di lib/aws-sigv4.mjs dan sudah dicek dengan test suite resmi AWS SigV4 serta contoh di dokumentasi S3. Tanpa AWS SDK dan tanpa dependensi npm.

Yang bisa dilakukan

  • 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.

Aksi

Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.

  • 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

Pengaturan

Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.

  • 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_REGION Us-east-1
    Signing region. auto for Cloudflare R2.
  • S3_ENDPOINT Https://s3.<region>.amazonaws.com
    Origin 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_STYLE 1 with S3_ENDPOINT, else 0
    1: 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_BYTES 104857600 (100 MiB)
    Largest object get_object saves
  • S3_MAX_UPLOAD_BYTES 104857600 (100 MiB, at most 1 GiB)
    Largest upload (the body is hashed in memory for the signature)
  • S3_MAX_TEXT_BYTES 1048576 (1 MiB)
    Most bytes output: "text" returns
  • S3_TIMEOUT_MS 30000
    Per-request timeout for listings, HEAD and DELETE
  • S3_TRANSFER_TIMEOUT_MS 300000
    Timeout 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

Cara memakainya

Di Graphrt Desktop

  1. Buka Plugins dan cari Amazon S3.
  2. Klik Install lalu setujui.
  3. Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
  4. Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Plugin di Graphrt Desktop

Dengan CLI

terminal
$ graphrt plugin install s3
workflow.yaml
- { 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 }
Plugin di docs