# Routine Update Tool

Changes a routine's name, instruction, schedule, the session it wakes, or whether it runs.

## When to Use

The agent uses this when the user changes a routine ("make it 08:00", "pause the morning email"). Only the fields passed change.

## Parameters

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | yes | Routine id from `routine_list` |
| `name` | string or null | no | New name |
| `instruction` | string or null | no | New instruction |
| `rule` | string or null | no | New RRULE, without the `RRULE:` prefix |
| `starts_at` | string or null | no | New anchor; re-anchors the schedule and sets its time of day |
| `timezone` | string or null | no | New IANA timezone |
| `session_id` | string or null | no | Session the routine should wake instead |
| `enabled` | boolean or null | no | `false` pauses, `true` resumes from the next occurrence |

## Returns

The routine as `routine_create` returns it, with `next_action` and `warning`. `warning` is null unless the call changes the instruction and the new instruction is over 300 words; the routine is saved as written either way.

## Notes

- A call that changes nothing is refused.
- Changing a routine does not make it run now.
