pub struct SkillInvokedData {
pub allowed_tools: Option<Vec<String>>,
pub content: String,
pub description: Option<String>,
pub name: String,
pub path: String,
pub plugin_name: Option<String>,
pub plugin_version: Option<String>,
pub source: Option<String>,
pub trigger: Option<SkillInvokedTrigger>,
}Expand description
Session event “skill.invoked”. Skill invocation details including content, allowed tools, and plugin metadata
Fields§
§allowed_tools: Option<Vec<String>>Tool names that should be auto-approved when this skill is active
content: StringFull content of the skill file, injected into the conversation for the model
description: Option<String>Description of the skill from its SKILL.md frontmatter
name: StringName of the invoked skill
path: StringFile path to the SKILL.md definition
plugin_name: Option<String>Name of the plugin this skill originated from, when applicable
plugin_version: Option<String>Version of the plugin this skill originated from, when applicable
source: Option<String>Source identifier for where the skill was discovered. Known values include: project (workspace skill), inherited (parent-directory skill), personal-copilot (/.copilot/skills), personal-agents (/.agents/skills), custom (configured directory), plugin (installed plugin), builtin (bundled runtime skill), and remote (org/enterprise skill)
trigger: Option<SkillInvokedTrigger>What triggered the skill invocation: user-invoked (explicit user action, such as via a slash command or UI affordance), agent-invoked (agent requested the skill), or context-load (loaded as part of another context, such as preloading skills configured on a custom agent or subagent)
Trait Implementations§
Source§impl Clone for SkillInvokedData
impl Clone for SkillInvokedData
Source§fn clone(&self) -> SkillInvokedData
fn clone(&self) -> SkillInvokedData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more