nexo_schedule_add
Add a personal cron job by automatically creating a LaunchAgent (macOS) or systemd timer (Linux) with execution tracking.
Instructions
Add a new personal cron job. Creates LaunchAgent (macOS) or systemd timer (Linux) automatically, wrapped with execution tracking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cron_id | Yes | Unique ID for this cron (e.g. 'my-backup', 'report-daily'). Must be lowercase with hyphens. | |
| script | Yes | Path to the script to run (absolute or relative to personal/scripts/). | |
| schedule | No | Time-based schedule as 'HH:MM' (daily) or 'HH:MM:weekday' (e.g. '08:00:1' for Monday 8AM). Mutually exclusive with interval_seconds. | |
| interval_seconds | No | Run every N seconds (e.g. 300 for every 5 min). Mutually exclusive with schedule/keep_alive. | |
| description | No | What this cron does (for logs and status). | |
| script_type | No | 'auto' (default), 'python', 'shell', 'node', or 'php'. | auto |
| keep_alive | No | Run as a daemon/keep-alive service instead of a timer. |