Set or update a cron trigger
set_cronSet or update a cron trigger on a site's deployed function. Schedule is crontab syntax (UTC). Path is the URL the cron handler should fire on (for the worker's scheduled() handler context).
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": {
"slug": "<slug>",
"path": "<path>",
"schedule": "<schedule>"
},
"name": "set_cron"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | URL path the cron handler fires on | |
| slug | Yes | site slug whose function gets the cron | |
| schedule | Yes | crontab schedule in UTC, e.g. "0 * * * *" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |