Skip to content
Developer Preview

serve/isIdle

Experimental

Answers whether serve can shut down for now: true iff no session has running work. Sessions that only wait for input count idle; monitors, running subagents and other live processes count as running, not idle. Armed-but-not-firing cron/reminders are waiting, not running; a firing tick is running. Also carries nextWakeAt, the earliest armed fire time in epoch milliseconds (a runtime scheduled delivery or an active cron/reminder job), or null when nothing is armed. A lease-free read; no params. Experimental.

Source

schema/msp/experimental/msp.schema.json#/methods/serve~2FisIdle

{
"description": "Answers whether serve can shut down for now: true iff no session has running work. Sessions that only wait for input count idle; monitors, running subagents and other live processes count as running, not idle. Armed-but-not-firing cron/reminders are waiting, not running; a firing tick is running. Also carries nextWakeAt, the earliest armed fire time in epoch milliseconds (a runtime scheduled delivery or an active cron/reminder job), or null when nothing is armed. A lease-free read; no params. Experimental.",
"result": {
"$ref": "#/$defs/ServeIsIdleResult"
},
"x-msp-descriptor": "serve/isIdle",
"x-msp-stability": "experimental"
}