Search project
search_projectSearch redacted project file contents with a timed .NET regex to find symbols or phrases. Returns grouped matches with context, not path matches.
Instructions
Searches transformed text with a timed .NET regex. It matches file content, never paths; find names with get_tree include_patterns. Use it for symbols or phrases; symbols=true finds declarations, not uses; use related_files for dependency links. Returns grouped numbered matches, merged context, complete|partial status, inspected/retained/written counts, and continuation. Line numbers use returned text; generated redaction replacements never match. Key parameters: pattern, paths, context_lines, ignore_case, max_results=1..200, git_scope, include_patterns, exclude_patterns, and max_file_bytes. The best unique declaration includes up to 1,800 protected body characters within the same cap. Project: unique listed name, absolute path returned by list_projects, or #index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | No | Narrows selection to literal paths for existing project-relative files or directories; glob characters are ordinary. | |
| branch | No | Remote Git branch; invalid for local projects. | |
| pattern | Yes | Required .NET regex with a 2-second timeout over redacted file content, never paths; use get_tree include_patterns for names. Text inserted by redaction never matches. | |
| project | No | unique listed name, absolute path returned by list_projects, or #index. | |
| symbols | No | Match declarations of the name in pattern (Foo, class Foo, Foo|Bar), not uses. | |
| git_scope | No | Narrows to staged, changed (including untracked files), or diff:<ref>..<ref> paths; content stays from the current working tree. | |
| ignore_case | No | Enables case-insensitive matching; accepts a boolean or its string form. | |
| max_results | No | Limits displayed match lines while scanning continues; the boundary reports encountered, retained, and written counts. | |
| tracked_only | No | Restricts results to Git-tracked files; accepts a boolean or its string form. | |
| context_lines | No | Context lines per match; overlapping windows merge. | |
| max_file_bytes | No | Excludes selected files larger than this byte count; accepts an integer or numeric string. | |
| exclude_patterns | No | Removes paths with the same project-relative glob syntax as include_patterns. | |
| include_patterns | No | Narrows with project-relative '/' globs: '*' and '?' stay in one segment, '**/' spans depths, and '{a,b}' alternates; matching is case-sensitive, while '!' and '[...]' are rejected. |