grep
Search project files using regex to locate symbols or strings, automatically skipping hidden dirs and binaries for clean results.
Instructions
Regex search across files under a path inside a project root. Skips hidden dirs, node_modules, .git, binaries. Free local I/O — prefer over deep_explore for locating symbols/strings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory to search, relative to a project root (default: the root itself). | |
| exclude | No | Glob patterns for paths to exclude. | |
| include | No | Glob patterns for files to include, e.g. ["*.ts"] (default: all). | |
| pattern | Yes | Regular expression to search for. | |
| project | No | Project path the user named in chat (armed via init). Pass it explicitly on every call. If no project has been named, ask the user; never guess. | |
| max_results | No | Max matches to return (default 100). | |
| session_token | No | Session token returned by init (or create_project). Required for every project tool call in this chat. A new chat must be re-armed. |