Skip to content
Developer Preview

session/leave

Admits release of one loaded session; final release or failure is pushed through session/leaveCompleted.

Type: SessionLeaveParams

session/leave params.

Field Type Stability Presence Description
commandId string required Client-minted UUIDv7 command identity.
sessionId string required The exact loaded session whose ownership is to be released.
stop boolean optional Explicitly cancel unfinished work before leaving. Omitted is false.
Source

schema/msp/experimental/msp.schema.json#/methods/session~2Fleave

{
"description": "Admits release of one loaded session; final release or failure is pushed through session/leaveCompleted.",
"params": {
"$ref": "#/$defs/SessionLeaveParams"
},
"result": {
"$ref": "#/$defs/SessionLeaveResult"
}
}