Skip to content
Developer Preview

subagent/close

Owner-close a child; the terminal mapping folds.

Type: SubagentOwnerReasonParams

Params for subagent/interrupt, subagent/stop, and subagent/close: a child target plus an optional human-readable reason that is preserved on the durable effect record.

Field Type Stability Presence Description
commandId string required Client-minted UUIDv7 command id.
reason string optional Optional reason, preserved on the durable owner-command record.
sessionId string required Target session (UUIDv7 string; preamble).
subagentId string required Durable child id (the item’s subagentId; opaque string).
Source

schema/msp/experimental/msp.schema.json#/methods/subagent~2Fclose

{
"description": "Owner-close a child; the terminal mapping folds.",
"params": {
"$ref": "#/$defs/SubagentOwnerReasonParams"
},
"result": {
"$ref": "#/$defs/CommandAcceptedResult"
}
}