From e89f54387083324dc7303a7b9ef5b72c80f68913 Mon Sep 17 00:00:00 2001 From: JoinProAI Date: Wed, 25 Mar 2026 22:00:46 -0400 Subject: [PATCH] fix(filesystem): clarify search_files matches file names, not contents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The description for search_files was ambiguous — it could be interpreted as searching file contents (like grep) when it actually matches file/directory names against a glob pattern. This caused AI assistants to misuse the tool by passing content strings as the pattern. Fixes #896 --- src/filesystem/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/filesystem/index.ts b/src/filesystem/index.ts index 7b67e63e58..63a00b71c5 100644 --- a/src/filesystem/index.ts +++ b/src/filesystem/index.ts @@ -628,7 +628,8 @@ server.registerTool( { title: "Search Files", description: - "Recursively search for files and directories matching a pattern. " + + "Recursively search for files and directories whose names match a glob pattern. " + + "This searches by file/directory name only — it does not search file contents. " + "The patterns should be glob-style patterns that match paths relative to the working directory. " + "Use pattern like '*.ext' to match files in current directory, and '**/*.ext' to match files in all subdirectories. " + "Returns full paths to all matching items. Great for finding files when you don't know their exact location. " +