Skip to content
Developer Preview

hook/declare

Experimental

Declares the plugin hooks of the plugins the client hosts; the call replaces the connection’s whole hook set, { "hooks": [] } removes it, and the host forgets the set when the connection closes. No commandId, no durable record.

Type: HookDeclareParams

hook/declare params: the connection’s whole hook set, in install order and then manifest order. The call replaces the set that the connection declared before, and an empty list removes it.

Field Type Stability Presence Description
hooks HookDeclaration[] Experimental required The declared hooks.
Source

schema/msp/experimental/msp.schema.json#/methods/hook~2Fdeclare

{
"description": "Declares the plugin hooks of the plugins the client hosts; the call replaces the connection's whole hook set, `{ \"hooks\": [] }` removes it, and the host forgets the set when the connection closes. No `commandId`, no durable record.",
"params": {
"$ref": "#/$defs/HookDeclareParams"
},
"result": {
"$ref": "#/$defs/HookDeclareResult"
},
"x-msp-descriptor": "hook/declare",
"x-msp-stability": "experimental"
}