efs_search
Find files or text within directories using parallel search and smart indexing. Supports regex, fuzzy matching, and file type filters to locate what you need fast.
Instructions
Fast parallel search with indexing.
Features:
Parallel search across all CPU cores (20x faster on your i7-14700K)
Smart indexing for frequently searched directories
Streaming results (see matches as they're found)
File name and content search
Regex and literal matching
Fuzzy search option
Search Types:
'files': Search by filename/pattern
'content': Search text inside files
'smart': Auto-detect best search type
Parameters:
path: Directory to search
pattern: Search pattern (regex or literal)
searchType: 'files' | 'content' | 'smart' (default: smart)
filePattern: Filter by file type (e.g., "*.js")
maxResults: Limit results (default: 100)
contextLines: Lines of context for content search (default: 2)
caseSensitive: Case sensitive search (default: false)
Examples: efs_search({ path: "D:/Projects", pattern: ".py", searchType: "files" }) efs_search({ path: "D:/Projects", pattern: "function_name", searchType: "content" }) efs_search({ path: "D:/Projects", pattern: "bug", filePattern: ".js", maxResults: 50 })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory to search | |
| pattern | Yes | Search pattern | |
| maxResults | No | Result limit (default: 100) | |
| searchType | No | Search type (default: smart) | |
| filePattern | No | File type filter (optional) | |
| contextLines | No | Context lines (default: 2) | |
| caseSensitive | No | Case sensitive (default: false) |