schedule_job
Create recurring or one-off scheduled agent runs for repositories, returning the schedule ID, frequency, next run time, and run intent.
Instructions
Create a recurring (or one-off) scheduled agent run owned by the caller.
Returns {id, name, frequency, next_run_at, is_enabled, repos, intent} or {"error": ...}.
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": {
"name": "<name>",
"prompt": "<prompt>",
"repos": "<repos>",
"frequency": "<frequency>"
},
"name": "schedule_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable schedule name. | |
| time | No | Time of day 'HH:MM' (24-hour). Required for daily/weekdays/weekly. | |
| muted | No | Mute notifications for this schedule's runs. | |
| repos | Yes | 1-20 repositories the schedule runs against, each with the same `prompt`. | |
| intent | No | watch-find | do-change | report. Omit for the default (watch-find). | |
| prompt | Yes | What the agent should do on each run. Same guidance as submit_job: describe the change; do not ask it to commit, push, or open PRs — those run automatically. | |
| run_at | No | ISO-8601 datetime for a one-off 'once' schedule. Naive values use the server timezone; offsets are honored. Must be a future time (up to ~60s in the past is tolerated). | |
| frequency | Yes | hourly | daily | weekdays | weekly (Mondays) | custom | once. | |
| agent_model | No | Model override 'provider_slug:model_name'. Omit for the repository's models.agent model, else the system default; the call is refused when no system default is configured. | |
| environment | No | Sandbox environment name or UUID. Omit to auto-resolve per repo each time the schedule fires. | |
| mcp_overrides | No | Optional MCP servers to switch on or off for this schedule's runs, relative to the default set, e.g. {"grafana": true}: true adds an on-demand server, false drops an active one. | |
| cron_expression | No | Five-field cron expression. Required for the 'custom' frequency. | |
| agent_thinking_level | No | Thinking effort: minimal/low/medium/high. |