search_content
Find text patterns within files using plain text or regex, searching recursively through specified directories and file types.
Instructions
Search for text content within files. Supports both plain text and regular expressions
Input Schema
TableJSON 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) | **/* |