grep
Search file contents using regex patterns. Returns matching lines with file path and line number. Supports optional path glob filtering.
Instructions
Search file contents using a regular expression. Returns matching lines with file path and line number. Optimized for fast content search across all files. Optionally filter which files to search with a path glob.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Regular expression pattern to search for (e.g. TODO|FIXME) | |
| path_filter | No | Glob pattern to limit which files are searched (e.g. /src/**) | |
| store | No | Named persistent store for cross-session access. Sessions are ephemeral (one per MCP connection); named stores persist indefinitely. Omit to use the session's own namespace. |