Update Routine
routine_update · Tools · Agents
Change a routine's wording, schedule, target session or switch
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
enabled | boolean | No | false pauses the routine, true resumes it. Use null to keep it. |
id | string | Yes | Routine id from routine_list or routine_create. Do not invent it. |
instruction | string | No | New instruction. Use null to keep it. |
name | string | No | New name. Use null to keep it. |
rule | string | No | An iCalendar RRULE without the "RRULE:" prefix, such as FREQ=DAILY, or FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR for weekdays. The time of day comes from starts_at, so leave out BYHOUR and BYMINUTE unless it runs several times a day. COUNT or UNTIL ends it. Use null to keep it. |
session_id | string | No | Id of the session the routine should wake instead, from session_list. Use null to keep it. Do not invent it. |
starts_at | string | No | The first run, which also sets the time of day: RFC 3339 with an offset (2026-11-04T07:30:00+01:00), or a local time without one (2026-11-04T07:30) read in timezone. If it is in the past, the routine starts at its next occurrence after now. Use null to keep it. |
timezone | string | No | IANA timezone the schedule follows, such as Europe/Stockholm. Use null to keep it. |
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.