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.
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": {
"script_name": "<script_name>",
"crons": "<crons>"
},
"name": "update_worker_cron"
}
}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. |