pub struct PluginInfo {Show 29 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 backend: Option<BackendInfo>,
pub views: Vec<ViewDecl>,
pub settings: Vec<PluginSetting>,
pub network: bool,
pub problems: Vec<String>,
pub last_error: Option<String>,
pub fingerprint: String,
pub locked: bool,
pub renderers: Vec<RendererDecl>,
pub starters: Vec<StarterDecl>,
pub superseded_by: Option<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>§backend: Option<BackendInfo>Its backend process, if it declares one.
views: Vec<ViewDecl>The views it declares (13.3+), shown at their sites while it is on (see
crate::sites).
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).
locked: boolAlways on: its switch can’t turn it off (13.4+; core bundled plugins and their forks).
renderers: Vec<RendererDecl>Which renderer draws a content type while it is on (13.4+).
starters: Vec<StarterDecl>Prompt suggestions for an empty chat (13.4+).
superseded_by: Option<String>Switched on, but another switched-on plugin providing the same thing (its id) is used
instead (13.7+; manifest provides): this one contributes nothing until one of them
is switched off.