search_code
Find code patterns across the project using case-insensitive regex to locate every match with file paths, line numbers, and matched content before making changes.
Instructions
Search for code patterns across the project using case-insensitive regex. Returns all matches with file paths, line numbers, and matched content. Use this to find where code patterns exist before making changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Text or regex pattern to search for (e.g., 'handleClick', 'Button.*onClick') | |
| file_glob | No | Glob pattern for files to search (default: '**/*.{py,jsx,js,tsx,ts}') | **/*.{py,jsx,js,tsx,ts} |