Skip to main content

Module context

Module context 

Source
Expand description

Plugin context types.

Provides the execution context for plugin lifecycle and tool invocations. Combines relevant fields from HookContext (session/user), ToolContext (workspace), and ScopedKvStore (plugin-scoped storage).

Structsยง

PluginContext
Context provided to a plugin during lifecycle operations (load/unload).
PluginToolContext
Context provided to a plugin tool during execution.