search_files
Recursively locate files and directories using a case-insensitive pattern match from a specified path. Control search depth and result limits to efficiently find matching items, even when exact locations are unknown. Ideal for quick file discovery within permitted directories.
Instructions
Recursively search for files and directories matching a pattern. Searches through all subdirectories from the starting path. The search is case-insensitive and matches partial names. Returns full paths to all matching items. Requires maxDepth
(default 2) and maxResults
(default 10) parameters. Great for finding files when you don't know their exact location. Only searches within allowed directories.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
excludePatterns | No | ||
maxDepth | Yes | Maximum directory depth to search. Must be a positive integer. Handler default: 2. | |
maxResults | Yes | Maximum number of results to return. Must be a positive integer. Handler default: 10. | |
path | Yes | ||
pattern | Yes |