grep
Search for text in files using a regular expression pattern, specify a directory or file type to narrow results, and locate matches efficiently.
Instructions
Search for text in files
Input Schema
| Name | Required | Description | Default | 
|---|---|---|---|
| include | No | File pattern to include in the search (e.g. "*.js", "*.{ts,tsx}") | |
| path | No | The directory to search in. Defaults to the current working directory. | |
| pattern | Yes | The regular expression pattern to search for in file contents | 
Input Schema (JSON Schema)
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "properties": {
    "include": {
      "description": "File pattern to include in the search (e.g. \"*.js\", \"*.{ts,tsx}\")",
      "type": "string"
    },
    "path": {
      "description": "The directory to search in. Defaults to the current working directory.",
      "type": "string"
    },
    "pattern": {
      "description": "The regular expression pattern to search for in file contents",
      "type": "string"
    }
  },
  "required": [
    "pattern"
  ],
  "type": "object"
}