code-search
Search project files using plain text or regex, excluding node_modules and .git, to quickly find the exact code you need.
Instructions
Performs regex or text searches over project files, excluding node_modules and .git.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search string or regex pattern. | |
| regex | No | Treat query as JavaScript regular expression. | |
| maxResults | No | Maximum number of matches to return (default 50, max 200). | |
| pathFilter | No | Optional substring filter applied to file paths. | |
| caseSensitive | No | Perform case-sensitive search when true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| regex | Yes | ||
| results | Yes | ||
| truncated | Yes | ||
| caseSensitive | Yes |