Skip to content
Developer Preview

subagent/stop

Stop a running child; outcome folds to the parent’s subagent item.

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~2Fstop

{
"description": "Stop a running child; outcome folds to the parent's subagent item.",
"params": {
"$ref": "#/$defs/SubagentOwnerReasonParams"
},
"result": {
"$ref": "#/$defs/CommandAcceptedResult"
}
}