reachthingsDocs
EN
Dashboard
Schedule toolslist_schedules
On this page
TOOLscope: devices:read · readOnlyHint

list_schedules

Schedules created by this connection (agent). Can be filtered by status or device.

Arguments

statusenum

pending_approval, active, paused, blocked, cancelled, completed.

device_idstring

Only schedules for this device.

limitinteger · 1–100

Default 50.

Returns

schedules[]Schedule[]

Each entry has the fields below.

statusenum

pending_approval active paused blocked cancelled completed, with status_reason.

recurrenceobject

{kind:"once", at}, {kind:"daily", time} or {kind:"weekly", time, weekdays}; recurrence_text is a human sentence.

next_run_at · next_run_localstring | null

Next run in UTC and in the schedule's timezone. null when nothing is left to run.

versioninteger

Increases when the target, command, time or recurrence changes. A schedule that needs approval must be approved again for the new version.

approvalobject

required, state (not_required pending approved expired), approved_version, expires_at and, when required, the console url.

grace_minutes · dst_policy · notes

Late runs beyond the grace period are skipped, never replayed. DST: a local time that does not exist moves forward; one that occurs twice runs the first time.

Request

REQUESTTypeScript ▾
await client.callTool({ name: "list_schedules", arguments: { status: "active" } });
RESPONSE · structuredContent
{
  "schedules": [
    {
      "schedule_id": "sch_7Qp2",
      "status": "active",
      "status_reason": null,
      "label": "Weekday morning AC",
      "device_id": "dev_8kq2",
      "action": "climate.set_temperature",
      "parameters": {
        "temperature": 24,
        "unit": "C"
      },
      "timezone": "Asia/Seoul",
      "recurrence": {
        "kind": "weekly",
        "time": "08:00",
        "weekdays": [
          1,
          2,
          3,
          4,
          5
        ]
      },
      "recurrence_text": "Weekly Mon·Tue·Wed·Thu·Fri 08:00",
      "ends_on": "2026-12-31",
      "next_run_at": "2026-11-02T23:00:00.000Z",
      "next_run_local": "2026-11-03 08:00 (Tue)",
      "last_run_at": null,
      "version": 1,
      "grace_minutes": 15,
      "approval": {
        "required": false,
        "state": "not_required",
        "approved_version": null,
        "expires_at": null
      },
      "dst_policy": "DST handling: a local time that does not exist (spring-forward gap) runs at the real time shifted forward by the gap; a local time that occurs twice (fall-back overlap) runs at the first occurrence.",
      "notes": []
    }
  ]
}