From b12a673078e7cfac3f6977e11d185ba3e00bbbc0 Mon Sep 17 00:00:00 2001 From: Alex Emmet <111742636+Alex-Emmet@users.noreply.github.com> Date: Tue, 26 May 2026 22:41:38 +0200 Subject: [PATCH] Planning & Tools --- src/tools.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 ) }