You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: `Fetches code that matches the provided regex pattern in \`query\`. This is NOT a semantic search.
140
140
Results are returned as an array of matching files, with the file's URL, repository, and language.`,
141
141
inputSchema: z.object({
142
-
query: z.string().describe("The regex pattern to search for in the code"),
142
+
queryRegexp: z
143
+
.string()
144
+
.describe(`The regex pattern to search for in the code.
145
+
146
+
Queries consist of space-seperated regular expressions. Wrapping expressions in "" combines them. By default, a file must have at least one match for each expression to be included. Examples:
147
+
148
+
\`foo\` - Match files with regex /foo/
149
+
\`foo bar\` - Match files with regex /foo/ and /bar/
150
+
\`"foo bar"\` - Match files with regex /foo bar/
151
+
\`console\.log\` - Match files with regex /console\.log/
152
+
153
+
Multiple expressions can be or'd together with or, negated with -, or grouped with (). Examples:
154
+
\`foo or bar\` - Match files with regex /foo/ or /bar/
155
+
\`foo -bar\` - Match files with regex /foo/ but not /bar/
156
+
\`foo (bar or baz)\` - Match files with regex /foo/ and either /bar/ or /baz/
157
+
`),
158
+
repoNamesFilterRegexp: z
159
+
.array(z.string())
160
+
.describe(`Filter results from repos that match the regex. By default all repos are searched.`)
161
+
.optional(),
162
+
languageNamesFilter: z
163
+
.array(z.string())
164
+
.describe(`Scope the search to the provided languages. The language MUST be formatted as a GitHub linguist language. Examples: Python, JavaScript, TypeScript, Java, C#, C++, PHP, Go, Rust, Ruby, Swift, Kotlin, Shell, C, Dart, HTML, CSS, PowerShell, SQL, R`)
165
+
.optional(),
166
+
fileNamesFilterRegexp: z
167
+
.array(z.string())
168
+
.describe(`Filter results from filepaths that match the regex. When this option is not specified, all files are searched.`)
0 commit comments