Search project
search_projectFind matching text in project files using a timeout-bounded regular expression, with options to filter by Git changes, case, context, and file size.
Instructions
Search already-redacted project text with a timeout-bounded .NET regular expression.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Optional Git branch for a remote project URL; invalid for local project paths. | |
| pattern | Yes | A .NET regular expression evaluated against redacted text with a 2-second timeout. | |
| project | No | Absolute root path returned by list_projects, or a Git URL when the server allows remote sources. Optional only when one local root is configured. | |
| git_scope | No | Further restrict results to staged files, all current changes, or files changed between two Git refs. | |
| ignore_case | No | Case-insensitive matching; accepts a boolean or the string 'true' or 'false'. | |
| max_results | No | Maximum matches from 1 to 200; default 50; integer or numeric string. | |
| tracked_only | No | Restrict results to files tracked by Git; accepts a boolean or the string 'true' or 'false'. | |
| context_lines | No | Context lines from 0 to 20; default 2; integer or numeric string. | |
| max_file_bytes | No | Exclude otherwise selected files strictly larger than this byte count; integer or numeric string. | |
| exclude_patterns | No | Project-relative glob patterns using '/' to exclude additional paths. | |
| include_patterns | No | Project-relative glob patterns using '/'. They only narrow built-in and gitignore filtering. |