diff --git a/src/tools.rs b/src/tools.rs index 94880e6..da20468 100644 --- a/src/tools.rs +++ b/src/tools.rs @@ -15,6 +15,10 @@ pub struct ToolDefinition { pub requires_approval: bool, #[serde(default)] pub version: String, + /// Whether this tool requires a project context to function. + /// Project-scoped tools are filtered out when no project is selected. + #[serde(default)] + pub project_scoped: bool, } impl ToolDefinition { @@ -31,8 +35,8 @@ impl ToolDefinition { pub fn to_short_doc(&self) -> String { format!( - "- {}: {} (parameters: {})\n", - self.name, self.description, self.parameters + "- {}: {}\n", + self.name, self.description ) }