mutateDate
Add or subtract days, hours, minutes, months, or years from a date-time string to calculate new dates for scheduling, deadlines, or time-based adjustments.
Instructions
Mutates a date time string by adding or subtracting days, hours, minutes, months, or years.
The date time string must follow luxon date-time format: yyyy-MM-dd hh:mm:ss a. Example: 2025-06-16 10:00:00 pm.
The update object must be a valid update object. Example: { days: -1, hours: 2, minutes: 3, months: 4, years: 5 }.
You must first invoke the tool named "currentDateTimeAndTimezone" to get the current date, time and timezone of the user if they don't specify an absolute date or time explicitly (today/tomorrow/yesterday/next week/next month/next year etc. is not absolute date or time).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dateTime | Yes | The date time string to mutate. Must follow luxon date-time format: yyyy-MM-dd hh:mm:ss a. Example: 2025-06-16 10:00:00 pm | |
| update | Yes | The update object to apply to the date time string |