pub struct SessionRpcPlugins<'a> { /* private fields */ }Expand description
session.plugins.* RPCs.
Implementations§
Source§impl<'a> SessionRpcPlugins<'a>
impl<'a> SessionRpcPlugins<'a>
Sourcepub async fn list(&self) -> Result<PluginList, Error>
pub async fn list(&self) -> Result<PluginList, Error>
Lists plugins installed for the session.
Wire method: session.plugins.list.
§Returns
Plugins installed for the session, with their enabled state and version metadata.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn reload(&self) -> Result<(), Error>
pub async fn reload(&self) -> Result<(), Error>
Reloads the session’s plugin set, refreshing MCP servers, custom agents, hooks, and skills cache so SDK-driven changes via server.plugins.* take effect immediately.
Wire method: session.plugins.reload.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn reload_with_params(
&self,
params: PluginsReloadRequest,
) -> Result<(), Error>
pub async fn reload_with_params( &self, params: PluginsReloadRequest, ) -> Result<(), Error>
Reloads the session’s plugin set, refreshing MCP servers, custom agents, hooks, and skills cache so SDK-driven changes via server.plugins.* take effect immediately.
Wire method: session.plugins.reload.
§Parameters
params- Optional flags controlling which side effects the reload performs.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Trait Implementations§
Source§impl<'a> Clone for SessionRpcPlugins<'a>
impl<'a> Clone for SessionRpcPlugins<'a>
Source§fn clone(&self) -> SessionRpcPlugins<'a>
fn clone(&self) -> SessionRpcPlugins<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more