Create a schedule
create_scheduleStart a saved workflow on a timetable. Needs an administrator key. Each start is a run billed to the organization, with the cost cap given here (or the default). Use preview_schedule first to check the timetable. A schedule pauses itself after repeated failed starts. An organization can have 50 schedules.
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": {
"workflow": "<workflow>",
"cron": "<cron>"
},
"name": "create_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cron | Yes | Five fields (minute hour day-of-month month day-of-week), such as "0 9 * * 1-5", or a descriptor such as @daily or @every 15m. At most once a minute. | |
| name | No | A label for the schedule. | |
| input | No | Any JSON the agent receives as its input on every start (maximum 1 MiB). | |
| notify | No | Tell a saved HTTP connection when each run it starts has finished, so nobody has to check on it: Ephemeral POSTs JSON (event, the run or batch with its status, output, error and final cost, and a one-line text) to the connection's URL plus path, with the connection's own credentials. The connection must be an HTTP connection that allows POST (see list_connections); a failed delivery is retried for a while. | |
| enabled | No | Whether the schedule starts runs (default true). | |
| timezone | No | IANA time zone name, such as Europe/Madrid (default UTC). | |
| workflow | Yes | Name of the saved workflow to run (see list_workflows). | |
| max_cost_micros | No | Cost cap of each run, in millionths of a dollar; defaults to default_max_cost_micros (get_account). On the hosted service it must cover at least the run fee plus compute for the workflow's whole timeout (with the surcharge for a zero-data-retention workflow); a smaller cap is refused, and the error's budget object gives the figures, required_max_cost_micros and longest_timeout_seconds. | |
| skip_if_running | No | Skip a start while the previous run is still going (default true). |