search_content
Search for text or regex patterns inside files recursively, with optional file pattern filtering.
Instructions
Search for text content within files. Supports both plain text and regular expressions
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Text or regex pattern to search. Examples: "TODO", "function\s+\w+", "console\.log" (escape special chars) | |
| directory | Yes | Directory to search in (absolute or relative path). Searches recursively through all subdirectories | |
| filePattern | No | Glob pattern for files to include. Examples: "*.js", "src/**/*.ts", "**/*.{js,ts}" (default: all files) | **/* |