annator / mcps /grok_com_github /tools /discussion_comment_write.json
techprotrade's picture
Add mcps directory
31c9f7d verified
Raw
History Blame Contribute Delete
1.97 kB
{
"name": "discussion_comment_write",
"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.",
"inputSchema": {
"type": "object",
"properties": {
"body": {
"type": "string",
"description": "Comment content (required for 'add', 'reply', and 'update' methods)"
},
"commentNodeID": {
"type": "string",
"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."
},
"discussionNumber": {
"type": "number",
"description": "Discussion number (required for 'add' and 'reply' methods)"
},
"method": {
"type": "string",
"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&A only).\n- 'unmark_answer' - unmarks a discussion comment as the answer (Q&A only).\n",
"enum": [
"add",
"reply",
"update",
"delete",
"mark_answer",
"unmark_answer"
]
},
"owner": {
"type": "string",
"description": "Repository owner (required for 'add' and 'reply' methods)"
},
"repo": {
"type": "string",
"description": "Repository name (required for 'add' and 'reply' methods)"
}
},
"required": [
"method"
]
}
}