s3_set_bucket_policy
Change an S3 bucket policy by replacing the full policy JSON or toggling a managed public GetObject grant while preserving other statements; confirm provider, bucket, actions, and scope first.
Instructions
Change an S3 bucket policy. ALWAYS confirm with the user before calling, including the provider, bucket, actions and object scope. Supply a full policy_json replacement or toggle the managed public GetObject grant with public_read. The toggle preserves other statements. Anonymous mutations and wildcard Allow actions require allow_public_write=true.
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": {
"provider": "<provider>",
"bucket": "<bucket>"
},
"name": "s3_set_bucket_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket | Yes | Bucket name. | |
| region | No | Bucket region. Omit for automatic resolution or a fixed endpoint. | |
| account | No | Account label of the provider whose object storage to use; omit for that provider's default account. | |
| provider | Yes | ||
| policy_json | No | Complete replacement policy as JSON. | |
| public_read | No | Add or remove the managed public GetObject grant for all keys. | |
| allow_public_write | No | Permit broad or anonymous write grants after explicit user confirmation. |