update_worker_cron
Set cron triggers (schedules) for a Worker script. Requires confirm:true to execute; omit to preview changes.
Instructions
Set the cron triggers (schedules) for 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. | |
| crons | Yes | List of cron expressions, e.g. ['*/5 * * * *']. Empty array clears triggers. | |
| 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. |