Update src/filesystem/index.ts

Co-authored-by: Sebastien Rosset <serosset@cisco.com>
This commit is contained in:
Ola Hungerford
2025-09-22 20:51:35 -07:00
committed by GitHub
parent 8dc53edae2
commit fdc7e6c294

View File

@@ -280,7 +280,11 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
{
name: "search_files",
description:
"Recursively search for files and directories matching glob patterns. " +
"Recursively search for files and directories by name matching a glob pattern. " +
"Supports glob-style patterns that match paths relative to the working directory. " +
"Use patterns 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. " +
"Only searches within allowed directories.
"The patterns should be glob-style patterns that match paths relative to the search path. " +
"Use patterns like ['*.ext'] to match files in current directory, and ['**/*.ext'] to match files in all subdirectories. " +
"Multiple patterns can be provided to match different file types, e.g., ['**/*.js', '**/*.ts']. " +