{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates temporary access credentials on a bucket that can be optionally scoped to prefixes or objects.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/r2_account_identifier"}},"required":["account_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/r2_temp_access_creds_request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"r2_account_identifier":{"description":"Cloudflare account ID that owns the R2 resource.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"r2_temp_access_creds_request":{"type":"object","properties":{"bucket":{"description":"Name of the R2 bucket.","type":"string"},"objects":{"description":"Optional object paths to scope the credentials to.","type":"array","items":{"type":"string"}},"parentAccessKeyId":{"description":"Access key ID of the parent R2 API token. The temporary credentials cannot exceed this token's permissions.","type":"string"},"permission":{"description":"Permissions allowed on the credentials.","type":"string","enum":["admin-read-write","admin-read-only","object-read-write","object-read-only"]},"prefixes":{"description":"Optional prefix paths to scope the credentials to.","type":"array","items":{"type":"string"}},"ttlSeconds":{"description":"Lifetime of the temporary credentials in seconds, up to 604800 seconds (7 days).","type":"number","default":900,"maximum":604800}},"required":["bucket","permission","ttlSeconds","parentAccessKeyId"],"examples":[{"bucket":"example-bucket","objects":["example-object"],"parentAccessKeyId":"example-access-key-id","permission":"object-read-write","prefixes":["example-prefix/"],"ttlSeconds":3600}]}}},"name":"Create Temporary Access Credentials","id":"cloudflare.r2-create-temp-access-credentials","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"bucket":"example-bucket","objects":["example-object"],"parentAccessKeyId":"example-access-key-id","permission":"object-read-write","prefixes":["example-prefix/"],"ttlSeconds":3600}},"maxRequests":1,"summary":false}}