Tool Name
cron
Description
Schedule reminders and recurring tasks. Supports three actions: add, list, and remove.Parameters
Action to perform:
"add", "list", or "remove"Reminder message to deliver (required for
add action)Interval in seconds for recurring tasks (e.g., 300 for every 5 minutes)
Cron expression for scheduled tasks (e.g.,
"0 9 * * *" for daily at 9 AM)IANA timezone for cron expressions (e.g.,
"America/Vancouver", "Europe/London"). Only used with cron_expr.ISO datetime for one-time execution (e.g.,
"2026-02-12T10:30:00")Job ID to remove (required for
remove action)Return Value
Returns:- add: Success message with job name and ID
- list: Formatted list of scheduled jobs
- remove: Confirmation or “not found” message
- error: Error message for invalid parameters or context issues
Configuration
Context Management
Actions
add - Schedule New Job
Create a new scheduled task. Must specify one of:every_seconds, cron_expr, or at.
Recurring with Interval
Recurring with Cron Expression
One-Time at Specific Time
list - Show Scheduled Jobs
remove - Delete Job
Schedule Types
Interval (every)
Runs repeatedly at fixed intervals:- Simple and predictable
- Measured from previous execution completion
- Good for: monitoring, polling, regular checks
Cron Expression (cron)
Runs at specific times matching a cron pattern:minute hour day month day_of_week
Examples:
"0 9 * * *"- Every day at 9:00 AM"*/15 * * * *"- Every 15 minutes"0 0 1 * *"- First day of each month at midnight"0 9 * * 1"- Every Monday at 9:00 AM"30 14 * * 1-5"- Weekdays at 2:30 PM
One-Time (at)
Runs once at a specific datetime:- ISO 8601 format required
- Automatically deleted after execution
- Good for: reminders, deadlines, one-off events
Timezones
Thetz parameter requires IANA timezone names:
Common Timezones:
America/New_York- US EasternAmerica/Los_Angeles- US PacificAmerica/Chicago- US CentralAmerica/Denver- US MountainAmerica/Vancouver- PacificAmerica/Toronto- Eastern CanadaEurope/London- UKEurope/Paris- Central EuropeAsia/Tokyo- JapanAsia/Shanghai- ChinaAustralia/Sydney- Australia
Error Cases
Missing Message
No Schedule Specified
Invalid Timezone
Invalid Date Format
Recursive Cron (Security)
Job Not Found
Use Cases
Daily Reports
System Monitoring
Meeting Reminders
Business Hours Alerts
Job Lifecycle
- Create: Job added with schedule and message
- Schedule: CronService calculates next run time
- Execute: At scheduled time, agent is triggered with message
- Deliver: Message sent to configured channel/chat
- Repeat (or Delete): Recurring jobs reschedule; one-time jobs delete
Persistence
Cron jobs are persisted across restarts (implementation-dependent). Check your CronService configuration for persistence details.Implementation
Seenanobot/agent/tools/cron.py:11 for the CronTool implementation.
See nanobot/cron/service.py for the CronService implementation.
Related
- Spawn Tool - Create background agents
- Message Tool - Receive scheduled messages
- Cron Service - Scheduling system architecture