pub struct PluginInfo {Show 23 fields
pub id: String,
pub name: String,
pub version: String,
pub description: String,
pub icon: String,
pub scope: PluginScope,
pub origin: PluginOrigin,
pub dir: String,
pub enabled: bool,
pub enabled_from: Level,
pub trusted: bool,
pub declined: bool,
pub shadowed_by: Option<PluginScope>,
pub tools: Vec<String>,
pub skills: Vec<String>,
pub agents: Vec<String>,
pub commands: Vec<String>,
pub servers: Vec<ServerInfo>,
pub settings: Vec<PluginSetting>,
pub network: bool,
pub problems: Vec<String>,
pub last_error: Option<String>,
pub fingerprint: String,
}Expand description
One plugin a chat can see.
Fields§
§id: String§name: String§version: String§description: String§icon: StringA lucide icon name.
scope: PluginScope§origin: PluginOrigin§dir: StringIts folder on the engine’s machine, for display.
enabled: boolSwitched on for this chat (the plugin switches, global → workspace → chat).
enabled_from: LevelThe level whose switch decides Self::enabled (Default: nobody switched it; on).
trusted: boolIts tools and servers may run. False for a PluginOrigin::Repo plugin until the
user trusts it (crate::ClientMsg::TrustPlugins); until then only its skills,
prompt line and subagents are used.
declined: boolThe user declined to trust it (not asked again).
shadowed_by: Option<PluginScope>A plugin with the same id in a more specific scope is used instead of this one.
tools: Vec<String>Tool names as the model sees them (Python tools and MCP tools), when in use.
skills: Vec<String>§agents: Vec<String>Subagent names.
commands: Vec<String>Slash commands (commands/*.md, Claude Code’s format).
servers: Vec<ServerInfo>§settings: Vec<PluginSetting>§network: boolIts tools may use the internet (permissions.network).
problems: Vec<String>What doesn’t work (a missing script, a bad skill, a missing setting); the parts that work are still used. Messages are the loader’s, for the plugin’s author.
last_error: Option<String>The last failed run of one of its tools in this engine run.
fingerprint: StringChanges whenever a file of the plugin changes (hex).