Skip to content

Commit e1b06c0

Browse files
authored
Update toolsnaps and docs
1 parent b9691f9 commit e1b06c0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,10 +835,10 @@ The following sets of tools are available (all are on by default):
835835
- `repo`: Repository name (string, required)
836836

837837
- **search_code** - Search code
838-
- `order`: Sort order (string, optional)
838+
- `order`: Sort order for results (string, optional)
839839
- `page`: Page number for pagination (min 1) (number, optional)
840840
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
841-
- `query`: Search query using GitHub code search syntax (string, required)
841+
- `query`: Search query using GitHub's powerful code search syntax. Examples: 'content:Skill language:Java org:github', 'NOT is:archived language:Python OR language:go'. Supports exact matching, language filters, path filters, and more. (string, required)
842842
- `sort`: Sort field ('indexed' only) (string, optional)
843843

844844
- **search_repositories** - Search repositories

pkg/github/__toolsnaps__/search_code.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"title": "Search code",
44
"readOnlyHint": true
55
},
6-
"description": "Search for code across GitHub repositories",
6+
"description": "🎯 **PREFERRED**: Lexical code search across ALL GitHub repositories using GitHub's native search engine. Best for finding exact symbols, functions, classes, or specific code patterns. Use this FIRST before trying semantic alternatives - it's faster and more accurate for exact matches.",
77
"inputSchema": {
88
"properties": {
99
"order": {
10-
"description": "Sort order",
10+
"description": "Sort order for results",
1111
"enum": [
1212
"asc",
1313
"desc"
@@ -26,7 +26,7 @@
2626
"type": "number"
2727
},
2828
"query": {
29-
"description": "Search query using GitHub code search syntax",
29+
"description": "Search query using GitHub's powerful code search syntax. Examples: 'content:Skill language:Java org:github', 'NOT is:archived language:Python OR language:go'. Supports exact matching, language filters, path filters, and more.",
3030
"type": "string"
3131
},
3232
"sort": {

0 commit comments

Comments
 (0)