put_worker_secret
Create or update a secret binding on a Cloudflare Worker script. Requires human approval (confirm:true) to execute; without it, returns a preview.
Instructions
Create or update a secret binding on a Worker script. Requires confirm:true (human-approval gate); without it returns a preview only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. | |
| script_name | Yes | The Worker script name. | |
| name | Yes | Secret binding name (env var name in the Worker). | |
| text | Yes | The secret value. | |
| confirm | No | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve before this is set to true. |