search_files
Find files by name pattern or content substring. Specify root directory and optional glob or text search to retrieve matching paths.
Instructions
Search for files by name pattern and/or content substring.
pattern is matched against file names using glob syntax OR substring match.
content_search scans file contents (text files only, skips binary).
Returns a list of matching absolute paths with optional match context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | Absolute path to directory to search in. | |
| pattern | Yes | Glob pattern (e.g. '*.py') or substring to match in file names. | |
| content_search | No | Optional text to search inside file contents. Empty = skip content search. | |
| case_sensitive | No | Set to true for case-sensitive matching. Default false. | |
| max_results | No | Maximum number of results to return. Default 100. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |