search_in_directory
Find any keyword across all files in a directory recursively, returning matching results with optional line numbers, file type filters, and case sensitivity controls.
Instructions
Search for a keyword across all files in a directory recursively. Returns results from all matching files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyword | Yes | The keyword or pattern to search for | |
| maxResults | No | Maximum number of results to return (default: 500) | |
| caseSensitive | No | Whether the search should be case-sensitive (default: false) | |
| directoryPath | Yes | Path to the directory to search within | |
| fileExtensions | No | Optional array of file extensions to filter by (e.g., ["ts", "js", "json"]) | |
| includeLineNumbers | No | Whether to include line numbers in results (default: true) |