pub struct SessionRpcPlugins<'a> { /* private fields */ }Expand description
session.plugins.* RPCs.
Implementations§
Source§impl<'a> SessionRpcPlugins<'a>
impl<'a> SessionRpcPlugins<'a>
Sourcepub fn marketplaces(&self) -> SessionRpcPluginsMarketplaces<'a>
pub fn marketplaces(&self) -> SessionRpcPluginsMarketplaces<'a>
session.plugins.marketplaces.* sub-namespace.
Sourcepub async fn list(&self) -> Result<PluginList, Error>
pub async fn list(&self) -> Result<PluginList, Error>
Lists globally installed, live, built-in, and enterprise-managed desired plugins using the live session’s authoritative account, working directory, and retained managed policy.
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 install(
&self,
params: SessionPluginsInstallRequest,
) -> Result<PluginInstallResult, Error>
pub async fn install( &self, params: SessionPluginsInstallRequest, ) -> Result<PluginInstallResult, Error>
Installs a plugin using the live session’s authoritative account, working directory, and retained managed policy.
Wire method: session.plugins.install.
§Parameters
params- Plugin source resolved relative to the session’s authoritative working directory.
§Returns
Result of installing a plugin.
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 uninstall(
&self,
params: PluginsUninstallRequest,
) -> Result<(), Error>
pub async fn uninstall( &self, params: PluginsUninstallRequest, ) -> Result<(), Error>
Uninstalls a plugin when permitted by the live session’s retained managed policy.
Wire method: session.plugins.uninstall.
§Parameters
params- Name (or spec) of the plugin to uninstall.
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 update(
&self,
params: PluginsUpdateRequest,
) -> Result<PluginUpdateResult, Error>
pub async fn update( &self, params: PluginsUpdateRequest, ) -> Result<PluginUpdateResult, Error>
Updates an installed plugin using the live session’s authoritative account, working directory, and retained managed policy.
Wire method: session.plugins.update.
§Parameters
params- Name (or spec) of the plugin to update.
§Returns
Result of updating a single plugin.
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 enable(
&self,
params: SessionPluginsEnableRequest,
) -> Result<(), Error>
pub async fn enable( &self, params: SessionPluginsEnableRequest, ) -> Result<(), Error>
Enables installed plugins when permitted by the live session’s retained managed policy.
Wire method: session.plugins.enable.
§Parameters
params- Plugin names (or specs) to enable in the session’s authoritative working directory.
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 disable(
&self,
params: SessionPluginsDisableRequest,
) -> Result<(), Error>
pub async fn disable( &self, params: SessionPluginsDisableRequest, ) -> Result<(), Error>
Disables installed plugins when permitted by the live session’s retained managed policy.
Wire method: session.plugins.disable.
§Parameters
params- Plugin names (or specs) to disable in the session’s authoritative working directory.
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.