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
-`body`: Comment content (required for 'add', 'reply', and 'update' methods) (string, optional)
736
+
-`commentNodeID`: The Node ID of the discussion comment (required for 'reply', 'update', 'delete', 'mark_answer', and 'unmark_answer' methods). For 'reply', this is the top-level comment to reply to; GitHub Discussions only support one level of nesting. (string, optional)
737
+
-`discussionNumber`: Discussion number (required for 'add' and 'reply' methods) (number, optional)
738
+
-`method`: Write operation to perform on a discussion comment.
739
+
Options are:
740
+
- 'add' - adds a new top-level comment to a discussion.
741
+
- 'reply' - replies to a top-level discussion comment (GitHub Discussions only support one level of nesting).
742
+
- 'update' - updates an existing discussion comment.
743
+
- 'delete' - deletes a discussion comment.
744
+
- 'mark_answer' - marks a discussion comment as the answer (Q&A only).
745
+
- 'unmark_answer' - unmarks a discussion comment as the answer (Q&A only).
746
+
(string, required)
747
+
-`owner`: Repository owner (required for 'add' and 'reply' methods) (string, optional)
748
+
-`repo`: Repository name (required for 'add' and 'reply' methods) (string, optional)
749
+
733
750
-**get_discussion** - Get discussion
734
751
-**Required OAuth Scopes**: `repo`
735
752
-`discussionNumber`: Discussion Number (number, required)
@@ -740,6 +757,7 @@ The following sets of tools are available:
740
757
-**Required OAuth Scopes**: `repo`
741
758
-`after`: Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs. (string, optional)
742
759
-`discussionNumber`: Discussion Number (number, required)
760
+
-`includeReplies`: When true, each top-level comment will include its replies nested within it (up to 100 replies per comment, which is the GitHub API maximum). Defaults to false. (boolean, optional)
743
761
-`owner`: Repository owner (string, required)
744
762
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
745
763
-`repo`: Repository name (string, required)
@@ -1267,6 +1285,14 @@ The following sets of tools are available:
1267
1285
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1268
1286
-`repo`: Repository name (string, required)
1269
1287
1288
+
-**list_repository_collaborators** - List repository collaborators
1289
+
-**Required OAuth Scopes**: `repo`
1290
+
-`affiliation`: Filter by affiliation. Can be one of: 'outside' (outside collaborators), 'direct' (all with permissions regardless of org membership), 'all' (all collaborators). Default: 'all' (string, optional)
1291
+
-`owner`: Repository owner (string, required)
1292
+
-`page`: Page number for pagination (default 1, min 1) (number, optional)
1293
+
-`perPage`: Results per page for pagination (default 30, min 1, max 100) (number, optional)
1294
+
-`repo`: Repository name (string, required)
1295
+
1270
1296
-**list_tags** - List tags
1271
1297
-**Required OAuth Scopes**: `repo`
1272
1298
-`owner`: Repository owner (string, required)
@@ -1424,6 +1450,11 @@ The following sets of tools are available:
1424
1450
1425
1451
<summary>Copilot Spaces</summary>
1426
1452
1453
+
-**Authentication note**
1454
+
- Fine-grained PATs are not hidden by classic PAT scope filtering, so these tools may still appear even when the token cannot use them.
1455
+
- For org-owned spaces, fine-grained PATs must be installed on the owning organization and include `organization_copilot_spaces: read`.
1456
+
- If an org-owned space contains repository-backed resources, the token must also have access to every referenced repository or the space may be treated as not found.
1457
+
1427
1458
-**get_copilot_space** - Get Copilot Space
1428
1459
-`owner`: The owner of the space. (string, required)
1429
1460
-`name`: The name of the space. (string, required)
"description": "Write operations for discussion comments.\nSupports adding top-level comments, replying to existing comments, updating comment content, deleting comments, and marking or unmarking comments as the answer.",
7
+
"inputSchema": {
8
+
"properties": {
9
+
"body": {
10
+
"description": "Comment content (required for 'add', 'reply', and 'update' methods)",
11
+
"type": "string"
12
+
},
13
+
"commentNodeID": {
14
+
"description": "The Node ID of the discussion comment (required for 'reply', 'update', 'delete', 'mark_answer', and 'unmark_answer' methods). For 'reply', this is the top-level comment to reply to; GitHub Discussions only support one level of nesting.",
15
+
"type": "string"
16
+
},
17
+
"discussionNumber": {
18
+
"description": "Discussion number (required for 'add' and 'reply' methods)",
19
+
"type": "number"
20
+
},
21
+
"method": {
22
+
"description": "Write operation to perform on a discussion comment.\nOptions are:\n- 'add' - adds a new top-level comment to a discussion.\n- 'reply' - replies to a top-level discussion comment (GitHub Discussions only support one level of nesting).\n- 'update' - updates an existing discussion comment.\n- 'delete' - deletes a discussion comment.\n- 'mark_answer' - marks a discussion comment as the answer (Q\u0026A only).\n- 'unmark_answer' - unmarks a discussion comment as the answer (Q\u0026A only).\n",
23
+
"enum": [
24
+
"add",
25
+
"reply",
26
+
"update",
27
+
"delete",
28
+
"mark_answer",
29
+
"unmark_answer"
30
+
],
31
+
"type": "string"
32
+
},
33
+
"owner": {
34
+
"description": "Repository owner (required for 'add' and 'reply' methods)",
35
+
"type": "string"
36
+
},
37
+
"repo": {
38
+
"description": "Repository name (required for 'add' and 'reply' methods)",
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/get_discussion_comments.snap
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,10 @@
14
14
"description": "Discussion Number",
15
15
"type": "number"
16
16
},
17
+
"includeReplies": {
18
+
"description": "When true, each top-level comment will include its replies nested within it (up to 100 replies per comment, which is the GitHub API maximum). Defaults to false.",
"description": "List collaborators of a GitHub repository. Results are paginated; the response includes `nextPage`, `prevPage`, `firstPage`, and `lastPage` fields. To get the next page, use the `nextPage` value as the `page` parameter.",
7
+
"inputSchema": {
8
+
"properties": {
9
+
"affiliation": {
10
+
"description": "Filter by affiliation. Can be one of: 'outside' (outside collaborators), 'direct' (all with permissions regardless of org membership), 'all' (all collaborators). Default: 'all'",
11
+
"enum": [
12
+
"outside",
13
+
"direct",
14
+
"all"
15
+
],
16
+
"type": "string"
17
+
},
18
+
"owner": {
19
+
"description": "Repository owner",
20
+
"type": "string"
21
+
},
22
+
"page": {
23
+
"description": "Page number for pagination (default 1, min 1)",
24
+
"minimum": 1,
25
+
"type": "number"
26
+
},
27
+
"perPage": {
28
+
"description": "Results per page for pagination (default 30, min 1, max 100)",
0 commit comments