Schedules: run a skill at set times
This is the schedules section of the usage guide. Call getDocs with { "section": "schedules" } to read it on an instance.
A schedule runs one skill at set times, in a time zone. Schedules belong to
the whole organisation, not to one person. The same list shows in the Sasha web
interface, in Menu → Tasks. The five tools need schedules:manage (admin and
staff only). A connection approved before that scope existed must reconnect.
listScheduleslists every schedule:name,skill,when(a five-part cron expression),timezone,enabled,timeoutMinutes,lastRunAt,lastStatus,nextRunAt(UTC) andlastError(the first 300 characters when the last run failed or timed out, else null). Use it to answer "did my report run?" and "why did it fail?".createScheduleadds one:name(lowercase letters, digits and hyphens, unique),skill,when,timezone(IANA, default UTC),enabled(default true) andtimeoutMinutes(1 to 60; left out, the skill's ownexecution.timeout_msapplies, else 5 minutes).whenis read intimezone, so0 18 * * 4with Europe/London is 18:00 London time all year. One skill can have several schedules: add one per time.updateSchedulechanges only the fields you send.enabled: falsepauses a schedule and keeps it.deleteScheduleremoves a schedule. The skill is not changed.runSchedulestarts one run now and returns at once. A run takes minutes and spends AI credit. CalllistScheduleslater for its outcome. A report agent is refused (agent_skill): start it from its app.
Before any change, say the change in plain words (for example "every Thursday
at 6pm London time") and get the person's agreement; Sasha does not check it, and each change is made when the tool is called. Refusals start with a code:
schedule_not_found, schedule_exists, skill_not_found,
unknown_time_zone, invalid_schedule or agent_skill.