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
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -974,7 +974,7 @@ The following sets of tools are available:
974
974
-`owner`: Optional repository owner. If provided with repo, only issues for this repository are listed. (string, optional)
975
975
-`page`: Page number for pagination (min 1) (number, optional)
976
976
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
977
-
-`query`: Search query using GitHub issues search syntax (string, required)
977
+
-`query`: The search query, as natural language. When the user gives alternative wordings, include them as plain words rather than joining them with OR. (string, required)
978
978
-`repo`: Optional repository name. If provided with owner, only issues for this repository are listed. (string, optional)
979
979
-`sort`: Sort field by number of matches of categories, defaults to best match (string, optional)
-`owner`: Optional repository owner. If provided with repo, only issues for this repository are listed. (string, optional)
414
414
-`page`: Page number for pagination (min 1) (number, optional)
415
415
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
416
-
-`query`: Search query using GitHub issues search syntax (string, required)
416
+
-`query`: The search query, as natural language. When the user gives alternative wordings, include them as plain words rather than joining them with OR. (string, required)
417
417
-`repo`: Optional repository name. If provided with owner, only issues for this repository are listed. (string, optional)
418
418
-`sort`: Sort field by number of matches of categories, defaults to best match (string, optional)
Copy file name to clipboardExpand all lines: docs/insiders-features.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -208,7 +208,7 @@ The list below is generated from the Go source. It covers tool **inventory and s
208
208
-`owner`: Optional repository owner. If provided with repo, only issues for this repository are listed. (string, optional)
209
209
-`page`: Page number for pagination (min 1) (number, optional)
210
210
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
211
-
-`query`: Search query using GitHub issues search syntax (string, required)
211
+
-`query`: The search query, as natural language. When the user gives alternative wordings, include them as plain words rather than joining them with OR. (string, required)
212
212
-`repo`: Optional repository name. If provided with owner, only issues for this repository are listed. (string, optional)
213
213
-`sort`: Sort field by number of matches of categories, defaults to best match (string, optional)
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/search_issues.snap
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
"readOnlyHint": true,
5
5
"title": "Search issues"
6
6
},
7
-
"description": "Search for issues in GitHub repositories using issues search syntax already scoped to is:issue",
7
+
"description": "Search issues using natural-language semantic matching. Best for conceptual or paraphrased queries (e.g. \"login fails after password reset\"). Already scoped to is:issue.",
8
8
"inputSchema": {
9
9
"properties": {
10
10
"order": {
@@ -31,7 +31,7 @@
31
31
"type": "number"
32
32
},
33
33
"query": {
34
-
"description": "Search query using GitHub issues search syntax",
34
+
"description": "The search query, as natural language. When the user gives alternative wordings, include them as plain words rather than joining them with OR.",
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/search_issues_ff_fields_param.snap
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
"readOnlyHint": true,
5
5
"title": "Search issues"
6
6
},
7
-
"description": "Search for issues in GitHub repositories using issues search syntax already scoped to is:issue",
7
+
"description": "Search issues using natural-language semantic matching. Best for conceptual or paraphrased queries (e.g. \"login fails after password reset\"). Already scoped to is:issue.",
8
8
"inputSchema": {
9
9
"properties": {
10
10
"fields": {
@@ -64,7 +64,7 @@
64
64
"type": "number"
65
65
},
66
66
"query": {
67
-
"description": "Search query using GitHub issues search syntax",
67
+
"description": "The search query, as natural language. When the user gives alternative wordings, include them as plain words rather than joining them with OR.",
// The two search engines want opposite things from a caller, so steering advice
1622
+
// for one is counterproductive for the other: semantic rewards paraphrased
1623
+
// natural language and degrades on boolean operators, while lexical needs the
1624
+
// caller's literal keywords and handles OR fine. The description has to describe
1625
+
// the engine the host will actually use.
1626
+
const (
1627
+
searchIssuesSemanticDescription="Search issues using natural-language semantic matching. Best for conceptual or paraphrased queries (e.g. \"login fails after password reset\"). Already scoped to is:issue."
1628
+
searchIssuesLexicalDescription="Search for issues in GitHub repositories using issues search syntax already scoped to is:issue"
1629
+
1630
+
searchIssuesSemanticQueryDescription="The search query, as natural language. When the user gives alternative wordings, include them as plain words rather than joining them with OR."
1631
+
searchIssuesLexicalQueryDescription="Search query using GitHub issues search syntax"
1632
+
)
1633
+
1621
1634
// searchIssuesTool builds the search_issues tool. When includeFields is true the
1622
1635
// tool advertises the optional `fields` parameter, filters each result to the
1623
1636
// requested subset, and emits fields telemetry. When false it is the original
1624
1637
// tool with no fields parameter and no filtering.
0 commit comments