task_set_repetition
Apply a repetition rule to an OmniFocus task, configuring its recurrence pattern. Overwrites any previous rule.
Instructions
Set the repetition rule on an OmniFocus task. Overwrites any existing rule. Use task_clear_repetition to remove a rule entirely. Returns the updated task ID; call task_get for the full object. Mutations do not sync automatically — call sync_trigger if cross-device visibility matters. Example: task_set_repetition({ id: "abc123", rule: { method: "fixed", unit: "days", steps: 7 } }) Example: task_set_repetition({ id: "abc123", rule: { method: "start-again", unit: "weeks", steps: 1 } })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the task to update. Get from task_list or search_query. | |
| rule | Yes | Repetition rule to apply. 'method': 'fixed' repeats on the original schedule, 'start-again' sets the next defer date from completion, 'due-again' sets the next due date from completion. 'unit': time unit for the interval. 'steps': how many units between occurrences (minimum 1). 'weekdays': optional array of day names — only valid when unit is 'weeks'. 'monthlyAnchor': optional day-of-month or weekday-position — only valid when unit is 'months'. |