Skip to content

CronCreateInput

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  3253071210["input_types.CronCreateInput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 3253071210
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Input for the CronCreate tool.

Source code in src/clawd_code_sdk/models/input_types.py
@_extra_allow
class CronCreateInput(TypedDict):
    """Input for the CronCreate tool."""

    cron: str
    """Standard 5-field cron expression in local time: "M H DoM Mon DoW" (e.g.

    "* /5 * * * *" = every 5 minutes, "30 14 28 2 *" = Feb 28 at 2:30pm local once).
    """
    prompt: str
    """The prompt to enqueue at each fire time."""
    recurring: NotRequired[bool]
    """true (default) = fire on every cron match until deleted or auto-expired after 7 days.

    false = fire once at the next match, then auto-delete. Use false for "remind me at X" one-shot
    requests with pinned minute/hour/dom/month.
    """
    durable: NotRequired[bool]
    """true = persist to .claude/scheduled_tasks.json and survive restarts.

    false (default) = in-memory only, dies when this Claude session ends. Use true only when the
    user asks the task to survive across sessions.
    """

cron instance-attribute

cron: str

Standard 5-field cron expression in local time: "M H DoM Mon DoW" (e.g.

"* /5 * * * *" = every 5 minutes, "30 14 28 2 *" = Feb 28 at 2:30pm local once).

durable instance-attribute

durable: NotRequired[bool]

true = persist to .claude/scheduled_tasks.json and survive restarts.

false (default) = in-memory only, dies when this Claude session ends. Use true only when the user asks the task to survive across sessions.

prompt instance-attribute

prompt: str

The prompt to enqueue at each fire time.

recurring instance-attribute

recurring: NotRequired[bool]

true (default) = fire on every cron match until deleted or auto-expired after 7 days.

false = fire once at the next match, then auto-delete. Use false for "remind me at X" one-shot requests with pinned minute/hour/dom/month.

:fa-brands-github: Show source on GitHub