SessionSetApprovalModeParams
session/setApprovalMode params: switch the session’s
approval enforcement mode mid-session. A standard command.
Select, never create. A client may select a mode the host’s
configuration already defines; it may not construct one, supply inline
rules, or otherwise describe a policy on the wire — which is why
[ApprovalMode] is closed.
Fields and variants
Section titled “Fields and variants”commandIdmodesessionId
Source
schema/msp/experimental/msp.schema.json#/types/SessionSetApprovalModeParams
{ "description": "`session/setApprovalMode` params: switch the session's\napproval enforcement mode mid-session. A standard command.\n\n**Select, never create.** A client may *select* a mode the host's\nconfiguration already defines; it may not construct one, supply inline\nrules, or otherwise describe a policy on the wire — which is why\n[`ApprovalMode`] is closed.", "properties": { "commandId": { "description": "The idempotency handle (UUIDv7).", "type": "string" }, "mode": { "$ref": "#/$defs/ApprovalMode", "description": "The preconfigured mode to select. The requesting actor is recorded\nfrom the connection's `clientInfo.name`." }, "sessionId": { "description": "The target session.", "type": "string" } }, "required": [ "commandId", "mode", "sessionId" ], "type": "object"}