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.

View as Markdown

Today

xale_read_today takes no arguments and returns the fields below in result.structuredContent. Clients that read text can still parse result.content[0].text for the original notice and data wrapper.

FieldWhat it is
today, timezoneToday's date and the person's time zone
timeBlocksToday's time blocks
milestonesToday's Milestones
calendarEventsRead-only events from Google and other calendars, up to 100
calendarEventsTruncatedtrue if there were more
tasksDueTodayOpen Tasks due today
tasksOverdue, tasksOverdueTotalUp to 20 open Tasks due before today, oldest first, and how many there are
habitsEach 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_read_now.

A range

xale_read_schedule with startDate and endDate (YYYY-MM-DD, inclusive, at most 62 days):

FieldWhat it is
rangestart, end, timezone
milestones, milestonesTruncatedMilestones in the range
blocks, blocksTruncatedTime blocks in the range
calendarEvents, calendarEventsTruncatedRead-only events from other calendars
tasksDue, tasksDueTruncatedTasks 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:

TextFix
“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.

  • Checked against main 5692de55

Was this helpful?

schedule-reading-a-day.md · main@c1725f34