Parameter shapes and worked detail for the schedules-mcp tools — notification modes, cron and interval schedules, self-continuations, editing and reading back tasks, model pinning, choosing a machine, the permission mode, trigger-only tasks, timezone rules. Load before creating or editing a scheduled task.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Task Scheduling Guide?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/otodock-task-scheduling-guide)
---
name: task-scheduling-guide
description: Parameter shapes and worked detail for the schedules-mcp tools — notification modes, cron and interval schedules, self-continuations, editing and reading back tasks, model pinning, choosing a machine, the permission mode, trigger-only tasks, timezone rules. Load before creating or editing a scheduled task.
---
# Task scheduling — the guide
The `task-scheduling` card in your instructions carries the rules (when a
task is right, scope, notification mode, timing, timezone). This guide is
the reference behind them.
## Task completion notifications (`notification_mode`)
Every task requires a `notification_mode` — pick one when calling
`create_scheduled_task` or `create_one_time_task`. The system enforces this:
there is no default. The chosen mode controls both the system's behaviour AND
the task agent's behaviour, so they can never disagree.
| Mode | What the user gets on success | What the user gets on failure | When to pick |
|---|---|---|---|
| `auto` | Generic `"Task Complete: <name>"` (severity from `notify_severity`) | `"Task Failed: <name>"` (warning) | Status tasks where the user only cares that it finished — deploys, "wake me when X is done", sync confirmations. |
| `manual` | A custom notification fired by the task agent itself, with actual results | `"Task Failed: <name>"` (system safety net — crashed agents can't notify themselves) | Notification content matters — daily PR review (with findings), draft Reddit comments (with the drafts), email triage (with summary). Most user-facing tasks fall here. |
| `none` | Nothing | Nothing (user explicitly opted out) | High-frequency ops tasks where notifications would be spam — cache refresh, log rotation, vector store rebuild. User checks the task runs page for status. |
You do not need to write notification instructions in the task prompt. The
system auto-injects the right behaviour for the chosen mode into the task
agent's system prompt:
- Don't write: *"When done, send a notification to the user with create_notification."* — `manual` mode injects this for you.
- Don't write: *"A notification will be sent automatically — do not notify yourself."* — `auto` mode injects this for you.
- Just pick `notification_mode` and write the task prompt about what the agent should DO.
`notify_severity` controls the generic notification's severity in `auto`
mode (`info` / `success` / `warning`) and is ignored in `manual` and `none`.
**Who is told** (`audience`, an agent-scope task only, offered where the
agent has the agent scope): the lowest role on this agent that receives the
task's notifications. That covers its auto and failure notices and
everything its runs send themselves. The values are `editor` (editors and
managers, the default for a new task), `contributor`, `viewer` (everyone who
uses the agent) or `manager`. Platform admins are always told, and people
below the editor role get it without the chat link. A task created from a
task run tells that run's people when `audience` is omitted, and a run may
not name a wider audience than its own (refused). `edit_task(audience=…)`
changes it. Omit it to leave it. `get_task` prints
`Who is told: <role> and above`.
## Scheduled self-continuations (`schedule_continuation`)
`schedule_continuation` wakes THIS session at a future time: the prompt you
give it is delivered into this very conversation as a new turn, with full
context (the session resumes automatically if it went idle). It works from
any session — chats and task runs alike.
- **Watchdog wake**: after delegating lanes, `schedule_continuation(prompt="Check on the delegated lanes — peek any that have not reported back.", in_seconds=3600)`. Cancel-on-arrival: if the thing you were watching for already happened (the callbacks arrived), `delete_task` the pending wake — don't let a stale watchdog fire.
- **Deferred round**: `schedule_continuation(prompt="Start phase 2 now if phase 1 finished.", at="2026-07-08T15:00:00")`.
Guardrails (enforced):
- Recurring continuations are always bounded — `max_runs` (default 5) or `until`. A chat must never wake itself forever. For indefinite monitoring, create a recurring **task** instead (`create_scheduled_task`) — each run gets a fresh context instead of accreting into this chat.
- Recurring wakes **coalesce**: a run is skipped while a previous wake is still unprocessed in this chat, and `list_tasks` says how many times in a row. A one-shot wake is never skipped: it is delivered behind the wake in front of it.
- `list_tasks` says `will not fire` for a one-shot whose time passed with nothing left to run it: run it or delete it.
- Continuations auto-cancel when this chat is deleted, appear in `list_tasks`, and are cancelled with `delete_task`.
## Cron schedules
`create_scheduled_task` accepts standard 5-field POSIX cron — `minute hour day month weekday`. Sub-daily intervals are fully supported:
- `*/10 * * * *` — every 10 minutes
- `0 */3 * * *` — every 3 hours (top of the hour)
- `*/15 9-17 * * 1-5` — every 15 minutes, 9am-5pm, weekdays
- `0 9 * * 1-5` — weekdays at 9am
- `0 0 * * 0` — every Sunday at midnight
Pick the coarsest interval that meets the user's intent — don't schedule
`* * * * *` (every minute) unless they explicitly need that. For cadences
that don't divide 24 evenly (every 17 hours, every 5h30m, every 3 days), use
`interval_seconds` instead of cron.
## Managing existing tasks
- **`list_tasks`** — shows all tasks for this agent with their current status (`active` or `paused`), schedule, next run time, and ID. Always call this first to find the task ID before pausing/resuming/deleting.
- **`get_task(task_id)`** — one task's full definition: the prompt verbatim, when it fires and in which zone (a trigger-type task lists the triggers pointing at it, or says none are wired yet), status and next run, timeout, notification mode, what it runs on (model with its tier, pinned or default, and the layer when one is pinned), warnings when a pin no longer resolves (a disabled model, an engine the agent no longer has), run count and limits. It is the only read that shows a task's prompt; `get_task_history` lists a task's runs and `get_task_result` the latest run's output. Read-only. Task ids are global: another accessible agent's task reads with its id alone.
- **Cross-agent reads**: `list_tasks`, `get_task_history`, and `get_task_result` take an optional `agent` argument — another agent's slug, or `"all"` for every agent your user can access; `get_task` takes none, since a task id already names its agent. You see exactly what your user would see on that agent's pages (their role travels with you); sessions without a user see only agent-scope tasks and runs, of this agent and its wired delegation targets (the scheduled-briefing pattern: read what your delegation targets did, then summarize). Reading is where it ends: to CHANGE another agent's schedule, ask that agent via delegation — mutations never cross agents.
- **`pause_task(task_id)`** — stops a task from firing on its schedule without deleting it. The task can be resumed later. Use when the user says "pause", "stop for now", "disable temporarily".
- **`resume_task(task_id)`** — re-enables a paused task. For one-time tasks whose `run_at` has already passed, resume keeps the row active but does NOT auto-fire — the user can run it manually from the dashboard if they want.
- **`edit_task(task_id, ...)`** — change the schedule, run time, name, prompt, timeout, notification settings, the timezone (`timezone=`, see below), or the model / execution layer of an existing task **without deleting and recreating it**. Pass only the fields you want to change. `schedule`, `interval_seconds` and `run_at` are mutually exclusive — setting one switches the mode and clears the others. Use this whenever the user says "change the time of X", "update the X reminder to Y", "make this run every 3 hours instead", "edit the prompt of X". Always prefer this over delete+recreate — it preserves the task ID, history references, and any in-flight context. In a task's run or a delegated job (no person in the session), a change to the prompt, the permission mode (Auto or Don't Ask) or the checks of a task that runs with the right to change the agent's knowledge is refused unless your own run holds that right. A wake's prompt changes only from the chat it wakes. Other fields stay editable.
- **`delete_task(task_id)`** — permanently removes a task (or a pending continuation). Use when the user says "delete", "remove", "cancel for good". Static tasks (defined in `tasks.json`) cannot be deleted via this tool.
- **`run_task(task_id, wait?, timeout_seconds?)`** — fires an existing task immediately, regardless of schedule. Use for "run X now" or to manually fire a paused/expired task. With `wait=true` the call returns the run's output once the run ends, with its status (completed, failed or cancelled); after `timeout_seconds` (default 600) it returns while the run continues, so read the result later with `get_task_result`.
- **`cancel_task_run(run_id)`** — stops a running or queued run (the id from `get_task_history`); a `run_task` wait on that run returns at once with status cancelled.
- **`get_task_history(task_id?, limit?)`** — recent runs: id, status, started, duration, the error when one failed. `Left running: N …` on a run means it ended with `run_in_background` commands or subagents still running: the run waited for them up to the task's `timeout_seconds` (never less than 600 s), then completed without their output; the session stays alive for them up to a platform ceiling. Give a long pipeline the `timeout_seconds` it needs.
- **`get_task_result(task_id)`** — the latest run's status and output.
- An `[app]` row in `list_tasks` is an app handler the platform wakes on a schedule: no LLM turn, no `runs on:`, and `model` / `layer` do not apply to it.
One-time tasks auto-clean up after they fire successfully — the row is
removed and won't appear in `list_tasks`. Recurring tasks persist and keep
firing until paused or deleted.
## Choosing a model for a task
A person's new chat, lane or own unpinned task takes the allowed engine they
use most on that agent (their own dashboard chats there in the last 30 days,
else on every agent); with no such chats, the agent's default engine when they
can run it, else an allowed engine on their own account, else one the platform
lends them; the agent's own work (agent-scope tasks and triggers, a
Shared-only agent's work, calls) runs on the agent's default engine from the
platform pool. A task of a person runs on the engine and model their own new
chat on this agent takes (the line marked `default`); a task the agent owns
(`scope: "agent"`) runs on the agent's default engine from the platform pool.
That is the right answer almost always — leave `model` and `layer` out.
The exception is a task whose cost profile genuinely differs from your
everyday work: a heavy daily briefing that has to reason over a lot of
material, or conversely a trivial hourly sync that would be wasteful on a big
model. `create_scheduled_task`, `create_one_time_task`, and `edit_task` all
take an optional `model` (and `layer`) that pins **that one task's runs**,
leaving the agent's default untouched for everything else. It is a real cost
lever: a lighter default with one task pinned up, or a frontier default with
the noisy tasks pinned down.
- **Ask the user before pinning a model, unless they already asked for it.** Which model a schedule burns is their spend, not your call. "Should I run that daily report on <stronger model> and keep everything else on the default?" is the shape of the question.
- **Valid values come from your own `layers:` line.** The `layers:` line lists the agent's allowed engines someone can run there in the person's order (the engines they use most on that agent first; the allowlist's order in a session with no person), each tagged `person` or `platform`, the person's pick marked `default`, the agent's own engine `agent default` where it differs, and `no paired machine` on an engine that runs on the platform host alone. `person` is the person in this chat, whose own tasks run there, and `platform` the platform pool, which runs agent-scope tasks (the pool's engines alone in a session with no person); their unpinned tasks take the `default` engine and agent-scope tasks the `agent default` one; each layer lists its model ids and its default model `[default, tN]`. A model pinned without `layer` runs on the engine the task would take unpinned when that engine offers it, else on the first engine of the agent's own order that does, which is not always the `layers:` line's order: name `layer` when the id is on two lines and you want the other. Look for it under **Scheduled-task Execution** in your prompt; if you also have the delegation tools it lives on your own row in **Available Agents** instead, and the Scheduled-task Execution block points you there. A model that isn't on that line is rejected with a 400; do not guess ids.
- **Pick by tier, not by name.** Every id on that line carries a capability tag, `[t1]` (frontier: complex coding, the hardest reasoning, judgement calls, long autonomous work) down to `[t4]` (fast: mechanical, high-volume routine work); `[t?]` is a local or custom model nobody rated. The **Model tiers** list next to it says what each model is good at. Complex, open-ended or judgement-heavy tasks (a code change on a real codebase, a review, a decision, a briefing that weighs evidence) belong on tier 1; only a mechanical, well-defined job (a sync, a reformat) belongs on tier 3 or 4. A newer, bigger-sounding or more expensive-sounding id is not a stronger model: the tag is.
- **Retuning is cheap.** `edit_task(task_id, model="...")` re-pins a live schedule from its next run on, with no change to when it fires. `edit_task(task_id, model="")` clears the pin, and the task runs unpinned again: a person's own task on their engine, any other on the agent's default.
## Choosing a machine for a task
Every task runs where the agent's default sends it. Leave `machine` out
unless the person asks for one. `create_scheduled_task`,
`create_one_time_task` and `edit_task` take an optional `machine` (a name or
an id) that sends that one task's runs to a machine.
- **The machine must be one the person may use.** That is one of their own paired machines, or an admin machine when the person is a platform admin. An agent-wide task (`scope: "agent"`) belongs to no person, so it never runs on a personal machine. A session without a person can only leave it at the default. A task that runs inside a chat (a continuation) keeps the chat's machine and takes none.
- **A refusal names the choices.** Pick one of the names it lists, or leave `machine` out.
- **An offline machine does not stop the run.** A run that starts while the machine is offline uses the agent's default, and the run's chat says so. `get_task_history` shows where each run ran (`ran on:`).
- **Read it back.** `list_tasks` shows `machine: <name>` and `get_task` a `Machine:` line when a task has its own machine.
- **Clearing it.** `edit_task(task_id, machine="default")` returns the task to the agent's default.
## The task's permission mode (`permission_mode`)
A task runs in Don't Ask unless it says otherwise. Leave `permission_mode`
out unless the person asks for Auto. `create_scheduled_task`,
`create_one_time_task` and `edit_task` take it.
- **`dontAsk`** (the default) runs every tool. Nobody is there to answer, so the few tools that always ask a person are refused.
- **`autoReview`** (Auto) runs reads, file edits and safe tools, and has the engine's own reviewer check anything else first. On Codex the reviewer checks only what reaches beyond the workspace. A tool that needs a check and cannot get one is refused, and the run says why.
- **Auto needs Claude Code or Codex.** A task on Direct LLM is refused Auto, and the refusal says so.
- **Read it back.** `get_task` shows the mode on its `Mode:` line.
- **Changing it.** `edit_task(task_id, permission_mode="dontAsk")` returns the task to Don't Ask from its next run on.
## Checks on a task (`checks`)
`create_scheduled_task`, `create_one_time_task` and `edit_task` take an
optional `checks`: the names of checks (the `checks` skill — named units that
judge work at the end of a turn) to attach to every run of the task. The
run's turn is judged when it ends; the agent gets the findings and fixes
them within the check's fix rounds, and a verdict that still does not pass
fails the run with the findings as its error. Name the agent's offered checks
by name and your own by `user:<name>`; the agent's mandatory checks run on
every task whether or not you name them. `edit_task(task_id, checks=[])`
clears the list.
- **Read it back, never assume.** `list_tasks` shows every task's effective model, its tier and layer — `runs on: <model> [pinned, tier 2 strong]` for a task-level pin, `[your engine, …]` when an unpinned task of a person follows the engine their own chats take, `[agent default, …]` when it follows the agent's current setting, `[layer default, …]` when only the engine is pinned and that engine's own first choice runs. `get_task` shows the same plus the prompt and any warning about a pin that no longer resolves. When asked "what model does this task run on?", answer from these reads, not from memory or the default. The dashboard's Scheduled Tasks tab shows the same.
## Trigger-only tasks (`task_type='trigger'`)
A task can also be paired with a **webhook trigger** instead of a schedule.
Use `create_one_time_task(name=..., prompt=..., task_type='trigger')` — the
task is stored without `run_at` or `delay_seconds`, and only runs when an
external system calls the trigger's webhook URL. This pattern is for personal
automations and business event handlers:
- "Run my code-review task whenever GitHub fires the PR-opened webhook"
- "Run the deploy-checker agent task whenever the CI webhook fires"
The task prompt can use `{{placeholder}}` tokens that get substituted from
the webhook body at fire time. Wire it up afterwards with
`create_trigger(task_id=...)` from the **triggers-mcp**. Cross-scope linkage
is enforced — a user-scoped trigger can only run a user-scoped task;
agent-scoped triggers only agent-scoped tasks.
## Across a restart
A one-time task or a continuation that came due while OtoDock was down fires
once when it is back. `delay_seconds` counts from the task's creation, so a
restart does not start the count again. A recurring task's missed fires are
not caught up. A run the restart cut is reopened under its own id, goes on
from where it stopped and notifies as usual, once. After a restore or more
than a day down nothing is caught up: a one-time task stays unfired, and the
run reads failed in `get_task_history` with "Cut short when the platform
restarted", with no `Task Failed` notification. While OtoDock updates, a
fire waits: the run stays pending and starts when OtoDock is back.
## Timezone semantics
The `[Current time: ...]` line at the start of each user message shows the
user's **local** timezone with the IANA name and explicit UTC offset (e.g.
`Europe/Athens (UTC+03:00)`, `America/New_York (UTC-04:00)`). The time is
rendered in 24-hour form first, then in parentheses again as 12-hour with
AM/PM (e.g. `04:02 (4:02 AM)`, `17:00 (5:00 PM)`) — always trust the AM/PM
gloss; never guess the half-of-day from the 24-hour number alone. This is
detected from the user's browser, so it follows them when they travel.
When you compute future times for `run_at` (or `schedule_continuation`'s `at`):
- **Prefer naive ISO** (no offset, e.g. `'2026-04-29T10:00:00'`). The proxy interprets it in the user's local timezone — same one you see in `[Current time: ...]`. This matches how users speak ("remind me at 10am") and travels with them.
- **Don't append `Z` or `+00:00`** unless you genuinely mean UTC. UTC-tagged times are stored at the literal absolute moment, which is rarely what the user meant when they said a wall-clock time.
- **Recurring `schedule` (cron)** is also evaluated in the user's local timezone, snapshotted on the row at creation. A new `schedule` alone keeps the row's zone; to change the zone of a recurring task (e.g. the user moved permanently), pass `edit_task(task_id, timezone="Asia/Tokyo")`.
- **`timezone` (create and edit) is for a zone the person NAMED.** Omit it and the task follows the zone of the person you are talking to when there is one, else the platform zone — and keeps following it if an admin changes that setting. In a task or trigger session the `[Current time: ...]` line shows the PLATFORM zone: never pass that as a guess, it pins a literal that stops following the setting. `get_task` shows which zone a task fires in.