Skip to content
Developer Preview

SessionSetApprovalModeResult

session/setApprovalMode result. Applies next-action — an in-flight tool action’s pending approval is not retroactively decided by a mode change.

  • applyOutcome
  • commandId
  • effectiveMode
  • status
Source

schema/msp/experimental/msp.schema.json#/types/SessionSetApprovalModeResult

{
"description": "`session/setApprovalMode` result. Applies next-action — an\nin-flight tool action's pending approval is not retroactively decided by a\nmode change.",
"properties": {
"applyOutcome": {
"$ref": "#/$defs/ApprovalModeApplyOutcome",
"description": "Whether the change did anything."
},
"commandId": {
"description": "Echoes the client's id.",
"type": "string"
},
"effectiveMode": {
"$ref": "#/$defs/EffectiveApprovalModeState",
"description": "The folded effective-mode projection — the same object the `Session`\ncarries as `approvalMode`."
},
"status": {
"$ref": "#/$defs/CommandStatus",
"description": "Admission status."
}
},
"required": [
"applyOutcome",
"commandId",
"effectiveMode",
"status"
],
"type": "object"
}