Skip to content

Scheduling

Scheduling tools let agents create recurring jobs, set up periodic wake-ups, and work with time.

Creates, deletes, or lists cron jobs for recurring scheduled work.

schedule_task(
action: "create",
cron_expression: "0 9 * * 1-5",
title: "Daily standup summary",
instruction: "Review yesterday's activity and list today's priorities"
)
schedule_task(action: "list")
schedule_task(
action: "delete",
task_id: "abc123"
)
ParameterTypeRequiredDescription
actionstringyescreate, delete, or list
target_agentstringnoAgent to schedule the task for (omit to schedule for yourself)
cron_expressionstringfor create5-field cron expression
titlestringfor createShort title for the cron job
instructionstringfor createInstructions to execute each time the cron fires
run_atstringnoISO 8601 datetime for the first run
task_idstringfor deleteThe cron job ID to cancel
  1. The scheduler picks up the task at the scheduled time
  2. A chat session is created for the assigned agent
  3. The agent processes the task using its tools
  4. Results are stored and can be delivered to the originating chat
  5. The next run time is calculated from the cron expression

Configures how often an agent wakes up for a heartbeat check. During each heartbeat, the agent reads its HEARTBEAT.md workspace file and acts on whatever instructions it finds there.

set_heartbeat(interval_minutes: 30)

To disable heartbeats:

set_heartbeat(interval_minutes: 0)
ParameterTypeRequiredDescription
interval_minutesintegeryesMinutes between heartbeat wake-ups (set to 0 to disable)

Gets the current UTC time or computes a future/past time by adding offsets.

get_time()
get_time(add_hours: 2, add_days: 1)

All parameters are optional. If none are provided, the tool returns the current UTC time.

ParameterTypeDescription
add_minutesintegerMinutes to add (negative to subtract)
add_hoursintegerHours to add (negative to subtract)
add_daysintegerDays to add (negative to subtract)
add_weeksintegerWeeks to add (negative to subtract)
add_monthsintegerMonths to add (negative to subtract)