Xale's model Days
Schedule Reading a day
xale_read_today gives today in one call; xale_read_schedule gives any range of up to 62 days. Both read in the person's time zone and say when a list was cut short.
Today
xale_ takes no arguments and returns the fields below in result.. Clients that read text can still parse result. for the original notice and data wrapper.
| Field | What it is |
|---|---|
today, timezone | Today's date and the person's time zone |
timeBlocks | Today's time blocks |
milestones | Today's Milestones |
calendarEvents | Read-only events from Google and other calendars, up to 100 |
calendarEventsTruncated | true if there were more |
tasksDueToday | Open Tasks due today |
tasksOverdue, tasksOverdueTotal | Up to 20 open Tasks due before today, oldest first, and how many there are |
habits | Each active Habit with completed, target and remaining for its current period |
Start here for the full day. For a display that follows Now and Up Next, use xale_.
A range
xale_ with startDate and endDate (YYYY-MM-DD, inclusive, at most 62 days):
| Field | What it is |
|---|---|
range | start, end, timezone |
milestones, milestonesTruncated | Milestones in the range |
blocks, blocksTruncated | Time blocks in the range |
calendarEvents, calendarEventsTruncated | Read-only events from other calendars |
tasksDue, tasksDueTruncated | Tasks due in the range |
When a …Truncated flag is true, the list stopped at its read limit: don't treat it as the whole schedule. Read a shorter range.
Range errors
These come back as tool errors, with nothing read:
| Text | Fix |
|---|---|
| “Range too large — max 62 days” | Split the range |
| “endDate must be on or after startDate” | Swap the dates |
| “… is not a real date range. Use YYYY-MM-DD dates that exist.” | Fix the date (there's no 30 February) |
Times in results
Block starts are epoch milliseconds; dates and HH:mm times are in the person's time zone, given as timezone. Convert before you tell the person a time.
For people
- Checked against main
5692de55