Schedule a workflow or pipeline
set_scheduleRun a deployed workflow on a schedule (pass workflow_id), a deployed pipeline (pass pipeline_id, and optionally deployment and variant from deploy_pipeline), or change a schedule (pass schedule_id). Deploy first with deploy_workflow or deploy_pipeline. A new repeating workflow schedule starts off, runs once straight away as a test, and switches on by itself when the test succeeds; a pipeline schedule has no test run and is on once saved. Scheduled runs cost money, so call it first without approved to get the times and the cost per run, tell the person, and call again with approved: true only after they say yes. No cron: use recurrence.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| variant | No | Pipeline only: the variant name in that deployment. Default: its first variant. | |
| approved | No | true only after the person has agreed to the schedule and its cost. | |
| timezone | No | IANA name, e.g. Europe/London. Default: the account's timezone. | |
| deployment | No | Pipeline only: the deployment name. Default: the pipeline's oldest live deployment. | |
| recurrence | No | unit day: interval, time_of_day. week: interval, time_of_day, weekdays. month: interval, time_of_day, day_of_month (1-31 or "last"). hour or minute (at least 5): interval, time_of_day (the start). once: run_at. | |
| pipeline_id | No | The deployed pipeline to schedule (for a new schedule, instead of workflow_id). | |
| schedule_id | No | The schedule to change (from list_schedules). | |
| workflow_id | No | The deployed workflow to schedule (for a new schedule). | |
| input_values | No | Start input values for every scheduled run, keyed by input name. |