Set Cron Triggers
set_cron_triggersReplace a Worker's full cron trigger set and remove all triggers by passing an empty list.
Instructions
Replace a Worker's full cron trigger set (the Worker must export a scheduled handler). Pass an empty list to remove all triggers.
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": "set_cron_triggers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crons | Yes | REPLACES the Worker's full cron trigger set; pass [] to remove all triggers | |
| script_name | Yes | The name of the Worker script |