search_files
Search and locate files by name, extension, or pattern using recursive glob searches. Finds matching files across directories for efficient file discovery.
Instructions
SEARCH AND FIND files matching patterns. Recursively searches through all subdirectories using glob patterns. Use for finding files by extension, locating specific files by name pattern. Keywords: search, find, locate, grep files, filter. / 搜索和查找匹配模式的文件。使用glob模式递归搜索所有子目录。用于按扩展名查找文件、按名称模式定位特定文件。关键词:搜索、查找、定位、过滤。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The directory path to start searching from. The search will recursively include all subdirectories. Use '.' for current directory, or specify any directory path. Examples: '.' (search from current), 'src/' (search in source), '/home/user/projects' (absolute path). | |
| pattern | Yes | The search pattern using glob syntax. Wildcards: * matches any characters, ? matches single character, ** matches any directories. Examples: '*.go' (all Go files), 'test_*.py' (test files starting with test_), '**/*.md' (all Markdown files in any subdirectory), 'config.*' (config files with any extension). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes |