create_scheduled_task
Schedule macOS commands to run automatically using launchd, with flexible options for recurring intervals or specific times.
Instructions
Create a scheduled task using launchd.
Args: name: Unique name for the task command: Command to execute interval_seconds: Run every N seconds (min 60) hour: Hour to run (0-23) for calendar schedule minute: Minute to run (0-59) for calendar schedule run_at_load: Run immediately when loaded
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hour | No | ||
| name | Yes | ||
| minute | No | ||
| command | Yes | ||
| run_at_load | No | ||
| interval_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |