Set task repetition
set_task_repetitionSet or clear task repetition using structured fields or raw iCal RRULE, with support for fixed, due-again, and defer-from-completion schedules.
Instructions
Set or clear a repeating schedule on a task. Use the structured fields (frequency/interval/daysOfWeek/daysOfMonth/count/endDate) — e.g. 2nd Tuesday monthly — or pass a raw iCal RRULE via rule_string. Verified by read-back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Structured repetition: stop after this many occurrences (ICS COUNT). Mutually exclusive with endDate. | |
| endDate | No | Structured repetition: stop repeating after this date (ICS UNTIL). Bare 'YYYY-MM-DD' emits the ICS DATE form for that calendar day; a full date-time is converted to the UTC form the ICS spec requires. Mutually exclusive with count. | |
| task_id | Yes | The ID of the task | |
| interval | No | Structured repetition: repeat every N periods of `frequency` (default 1). E.g. frequency 'weekly' + interval 2 = every other week. | |
| frequency | No | Structured repetition: how often the task repeats. Required when using any other structured field. | |
| daysOfWeek | No | Structured repetition: which weekdays. Either plain names (monday/tuesday/wednesday/thursday/friday/saturday/sunday) or objects like { day: 'tuesday', position: 2 } for '2nd Tuesday' / { day: 'friday', position: -1 } for 'last Friday'. Positions require frequency 'monthly' or 'yearly'. Cannot be used with frequency 'daily' or together with daysOfMonth. | |
| daysOfMonth | No | Structured repetition: days of the month, 1-31, -1 for the last day, or -2 for the next-to-last day. Requires frequency 'monthly' or 'yearly'. Cannot be combined with daysOfWeek. | |
| rule_string | No | Raw iCal RRULE string, e.g. 'FREQ=DAILY;INTERVAL=1', 'FREQ=WEEKLY;INTERVAL=2;BYDAY=MO,WE,FR'. Escape hatch for rules the structured fields below cannot express. Mutually exclusive with frequency/interval/daysOfWeek/daysOfMonth/count/endDate. Ignored when schedule_type is 'none'. | |
| schedule_type | Yes | 'regularly' = fixed schedule (repeats on the calendar regardless of when you finish), 'from_completion' = OmniFocus 'Due Again' (next due date measured from the completion date), 'defer_from_completion' = OmniFocus 'Defer Another' (next defer date measured from the completion date), 'none' = clear repetition |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| meta | No | ||
| tool | Yes | ||
| success | Yes |